mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
af59306455
commit
4f23409e0c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user