Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03974e81 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

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



we may corrupt waiting list if a request in the waiting list is kicked.

Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
Reviewed-by: default avatarSage Weil <sage@redhat.com>
parent 656e4382
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
		}
	}