mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 06:49:29 -04:00
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>
This commit is contained in:
committed by
Ilya Dryomov
parent
c1dfc27723
commit
111c708104
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user