]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/ceph/caps.c
ceph: add non-blocking parameter to ceph_try_get_caps()
authorLuis Henriques <lhenriques@suse.com>
Mon, 15 Oct 2018 15:45:57 +0000 (16:45 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 22 Oct 2018 08:28:23 +0000 (10:28 +0200)
commit2ee9dd958d474252510b8c4dc216aa1dab7ad272
tree176b6bb4260127b5c1ea310c5e742dfc2785f1af
parent98c4bfe9d89b22d7bfddf6469241658920b6fafe
ceph: add non-blocking parameter to ceph_try_get_caps()

ceph_try_get_caps currently calls try_get_cap_refs with the nonblock
parameter always set to 'true'.  This change adds a new parameter that
allows to set it's value.  This will be useful for a follow-up patch that
will need to get two sets of capabilities for two different inodes without
risking a deadlock.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/caps.c
fs/ceph/super.h