ceph: fix comments over ceph_add_cap
authorJeff Layton <jlayton@kernel.org>
Fri, 19 Jul 2019 13:41:02 +0000 (09:41 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commit354c63a0033f1ad4bcb208e796f997bfaf946e6d
tree8b17f0b9468b1a2b1bba800cf6d5a211ac573fb9
parent533a2818dd1a00cdd32d638fea0178e25a683053
ceph: fix comments over ceph_add_cap

We actually need the ci->i_ceph_lock here. The necessity of the s_mutex
is less clear. Also add a lockdep assertion for the i_ceph_lock.

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/caps.c