Skip to content

Commit

Permalink
ceph: make sure request isn't in any waiting list when kicking request.
Browse files Browse the repository at this point in the history
we may corrupt waiting list if a request in the waiting list is kicked.

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
ukernel authored and idryomov committed Oct 14, 2014
1 parent 656e438 commit 03974e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,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);
}
}
Expand Down

0 comments on commit 03974e8

Please sign in to comment.