]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: eliminate req->r_wait_for_completion from ceph_mds_request
authorJeff Layton <jlayton@kernel.org>
Thu, 3 Feb 2022 14:04:24 +0000 (09:04 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Mar 2022 17:26:36 +0000 (18:26 +0100)
commitbdfcba6a3e3aa97696e98b6526f8587d17479c44
tree26b0cc1650236673dc3986a7e5457eab5626932c
parent03b1494af118a25ae24c26ab660be2c2d81aec21
ceph: eliminate req->r_wait_for_completion from ceph_mds_request

...and instead just pass the wait function on the stack.

Make ceph_mdsc_wait_request non-static, and add an argument for wait for
completion. Then have ceph_lock_message call ceph_mdsc_submit_request,
and ceph_mdsc_wait_request and pass in the pointer to
ceph_lock_wait_for_completion.

While we're in there, rearrange some fields in ceph_mds_request, so we
save a total of 24 bytes per.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/locks.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h