ceph: after an MDS request, do callback and completions [Linux 5.2]

ceph: after an MDS request, do callback and completions [Linux 5.2]

This Linux kernel change "ceph: after an MDS request, do callback and completions" is included in the Linux 5.2 release. This change is authored by Jeff Layton <jlayton [at] kernel.org> on Tue Apr 2 09:43:18 2019 -0400. The commit for this change in Linux stable tree is 111c708 (patch).

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>

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/ceph/mds_client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index bfa1733..b451ec7 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);
 }

 /*

Leave a Reply

Your email address will not be published. Required fields are marked *