]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: don't take i_ceph_lock in handle_cap_import
authorJeff Layton <jlayton@kernel.org>
Thu, 19 Mar 2020 16:00:16 +0000 (12:00 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Jun 2020 11:22:52 +0000 (13:22 +0200)
commitd9510543e16488a7fcbbcfd40639117edd6490ea
tree4b35a3638f91f24576c06637fa0df0cab56ea1de
parentec0a6db840b789d7bae28921116dbd927a7ab0a7
ceph: don't take i_ceph_lock in handle_cap_import

Just take it before calling it. This means we have to do a couple of
minor in-memory operations under the spinlock now, but those shouldn't
be an issue.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c