diff mbox series

ceph: remove redundant request session put code

Message ID 20191121104537.22630-1-xiubli@redhat.com (mailing list archive)
State New, archived
Headers show
Series ceph: remove redundant request session put code | expand

Commit Message

Xiubo Li Nov. 21, 2019, 10:45 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

Since the _do_request() will do it anyway again, so this here makes
no sense. This will keep the same with kick_requests() from commit
dc69e2e9fcd.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 fs/ceph/mds_client.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index a4e7026aaec9..8ceea0c62fda 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3025,7 +3025,6 @@  static void handle_forward(struct ceph_mds_client *mdsc,
 		req->r_attempts = 0;
 		req->r_num_fwd = fwd_seq;
 		req->r_resend_mds = next_mds;
-		put_request_session(req);
 		__do_request(mdsc, req);
 	}
 	ceph_mdsc_put_request(req);