mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
rbd: remove linger unconditionally
In __unregister_linger_request(), the request is being removed
from the osd client's req_linger list only when the request
has a non-null osd pointer. It should be done whether or not
the request currently has an osd.
This is most likely a non-issue because I believe the request
will always have an osd when this function is called.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 61c7403562
)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02585b8bdc
commit
50cda8f443
1 changed files with 1 additions and 1 deletions
|
@ -905,8 +905,8 @@ static void __unregister_linger_request(struct ceph_osd_client *osdc,
|
|||
struct ceph_osd_request *req)
|
||||
{
|
||||
dout("__unregister_linger_request %p\n", req);
|
||||
list_del_init(&req->r_linger_item);
|
||||
if (req->r_osd) {
|
||||
list_del_init(&req->r_linger_item);
|
||||
list_del_init(&req->r_linger_osd);
|
||||
|
||||
if (list_empty(&req->r_osd->o_requests) &&
|
||||
|
|
Loading…
Reference in a new issue