[1/7] ceph: after an MDS request, do callback and completions
diff mbox series

Message ID 20190415183332.25581-2-jlayton@kernel.org
State New
Headers show
Series
  • ceph: various cleanups in MDS requests
Related show

Commit Message

Jeff Layton April 15, 2019, 6:33 p.m. UTC
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>
---
 fs/ceph/mds_client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 4cfefe118128..29c346a22eb6 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2401,8 +2401,7 @@  static void complete_request(struct ceph_mds_client *mdsc,
 {
 	if (req->r_callback)
 		req->r_callback(mdsc, req);
-	else
-		complete_all(&req->r_completion);
+	complete_all(&req->r_completion);
 }
 
 /*