ceph: have ceph_mdsc_do_request call ceph_mdsc_submit_request
authorJeff Layton <jlayton@kernel.org>
Tue, 2 Apr 2019 13:24:36 +0000 (09:24 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:22:37 +0000 (19:22 +0200)
commit86bda539fa90184ca404afb38cd015416bf81d15
treedca133d40dbb83dd021cee98ca56ee2c24ea2166
parent111c708104506d53bb1845c782cfd98157471e32
ceph: have ceph_mdsc_do_request call ceph_mdsc_submit_request

Nothing calls ceph_mdsc_submit_request today, but in later patches we'll
need to be able to call this separately.

Have the helper return an int so we can check the r_err under the mutex,
and have the caller just check the error code from the submit. Also move
the acquisition of CEPH_CAP_PIN references into the same function.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h