summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorJeff Layton2019-04-02 15:43:18 +0200
committerIlya Dryomov2019-05-07 19:22:37 +0200
commit111c708104506d53bb1845c782cfd98157471e32 (patch)
treed0b210715857c597ba051fed4bb36d19cb82dbed /fs/ceph
parentceph: use pathlen values returned by set_request_path_attr (diff)
downloadkernel-qcow2-linux-111c708104506d53bb1845c782cfd98157471e32.tar.gz
kernel-qcow2-linux-111c708104506d53bb1845c782cfd98157471e32.tar.xz
kernel-qcow2-linux-111c708104506d53bb1845c782cfd98157471e32.zip
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>
Diffstat (limited to 'fs/ceph')
-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,
{
if (req->r_callback)
req->r_callback(mdsc, req);
- else
- complete_all(&req->r_completion);
+ complete_all(&req->r_completion);
}
/*