ceph: cleanup aborted requests when re-sending requests.
PATCH 1/1 ceph: cleanup aborted requests when re-sending requests.
From: "Yan, Zheng" <[email protected]>
Aborted requests usually get cleared when the reply is received. If MDS crashes, no reply will be received. So we need to cleanup aborted requests when re-sending requests.
--- fs/ceph/mds_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/ceph/mds_client.c +4 -1
@@ -1875,8 +1875,11 @@ static int __do_request(struct ceph_mds_client *mdsc,int mds =-1 ;int err = -EAGAIN ; -if (req->r_err || req->r_got_result) +if (req->r_err || req->r_got_result) { +if (req->r_aborted) +__unregister_request (mdsc, req); goto out; + }if (req->r_timeout &&time_after_eq (jiffies, req->r_started + req->r_timeout)) {
Signature · 1 line
1.8.1.4
A little delayed, but Sage just pushed this into our testing repo. Thanks! (Feel free to poke me in future if you know you have patches that have been hanging for a while.)
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
Quoted 35 lines · Zheng
From: "Yan, Zheng" <[email protected]>
Aborted requests usually get cleared when the reply is received. If MDS crashes, no reply will be received. So we need to cleanup aborted requests when re-sending requests.
Signed-off-by Yan, Zheng <[email protected]>--- fs/ceph/mds_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)fs/ceph/mds_client.c +4
-2@@ -1875,8 +1875,11 @@ static int __do_request(struct ceph_mds_client *mdsc,int mds =-1 ;int err = -EAGAIN ; -if (req->r_err || req->r_got_result) +if (req->r_err || req->r_got_result) { +if (req->r_aborted) +__unregister_request (mdsc, req); goto out; + }if (req->r_timeout &&time_after_eq (jiffies, req->r_started + req->r_timeout)) { --1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html