aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2019-04-02 09:43:18 -0400
committerIlya Dryomov <idryomov@gmail.com>2019-05-07 13:22:37 -0400
commit111c708104506d53bb1845c782cfd98157471e32 (patch)
treed0b210715857c597ba051fed4bb36d19cb82dbed
parentc1dfc277239c73f68a6af6979acec1989a5e6864 (diff)
ceph: after an MDS request, do callback and completions
No MDS requests use r_callback today, but that will change in the future. The OSD client always does r_callback and then completes r_completion. Let's have the MDS client do the same. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r--fs/ceph/mds_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index bfa1733c6336..b451ec761290 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2384,8 +2384,7 @@ static void complete_request(struct ceph_mds_client *mdsc,
2384{ 2384{
2385 if (req->r_callback) 2385 if (req->r_callback)
2386 req->r_callback(mdsc, req); 2386 req->r_callback(mdsc, req);
2387 else 2387 complete_all(&req->r_completion);
2388 complete_all(&req->r_completion);
2389} 2388}
2390 2389
2391/* 2390/*