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)
commit7833323363233c75fd8d10b5ceefbb9515cb3e32
tree4b35a3638f91f24576c06637fa0df0cab56ea1de
parent7391fba2678c0288d0daf636ddc4f78de7704f81
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