summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-06-20 18:29:20 +0400
committerIlya Dryomov <ilya.dryomov@inktank.com>2014-07-08 15:08:44 +0400
commit4f23409e0c787be1a501527c79578833567a1e58 (patch)
tree094fb2b4481ba7d86363db1ab42b2ee323646b62 /net/ceph
parentaf59306455587143615517ade1ffce2e8f4fda48 (diff)
downloadlinux-4f23409e0c787be1a501527c79578833567a1e58.tar.bz2
libceph: fix linger request check in __unregister_request()
We should check if request is on the linger request list of any of the OSDs, not whether request is registered or not. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/osd_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 943dba916ab1..89d7d8861d80 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1221,7 +1221,7 @@ static void __unregister_request(struct ceph_osd_client *osdc,
list_del_init(&req->r_osd_item);
maybe_move_osd_to_lru(osdc, req->r_osd);
- if (list_empty(&req->r_linger_item))
+ if (list_empty(&req->r_linger_osd_item))
req->r_osd = NULL;
}