Commit fcd082c0 authored by Yan, Zheng's avatar Yan, Zheng Committed by Jiri Slaby

ceph: make sure request isn't in any waiting list when kicking request.

commit 03974e81 upstream.

we may corrupt waiting list if a request in the waiting list is kicked.
Signed-off-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Reviewed-by: default avatarSage Weil <sage@redhat.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent dbbcea97
......@@ -1985,6 +1985,7 @@ static void kick_requests(struct ceph_mds_client *mdsc, int mds)
if (req->r_session &&
req->r_session->s_mds == mds) {
dout(" kicking tid %llu\n", req->r_tid);
list_del_init(&req->r_wait);
__do_request(mdsc, req);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment