From: Jeff Layton Date: Tue, 2 Apr 2019 13:43:18 +0000 (-0400) Subject: ceph: after an MDS request, do callback and completions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=111c708104506d53bb1845c782cfd98157471e32;p=linux.git 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 Reviewed-by: "Yan, Zheng" Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index bfa1733c6336a..b451ec7612907 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, { if (req->r_callback) req->r_callback(mdsc, req); - else - complete_all(&req->r_completion); + complete_all(&req->r_completion); } /*