summaryrefslogtreecommitdiff
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2021-06-01 09:24:38 -0400
committerIlya Dryomov <idryomov@gmail.com>2021-06-29 00:15:51 +0200
commitdf2c0cb7f8e8c83e495260ad86df8c5da947f2a7 (patch)
tree62b4b4adf42ce47b272c0f108724b690cd312363 /fs/ceph/dir.c
parenta6862e6708c15995bc10614b2ef34ca35b4b9078 (diff)
ceph: clean up locking annotation for ceph_get_snap_realm and __lookup_snap_realm
They both say that the snap_rwsem must be held for write, but I don't see any real reason for it, and it's not currently always called that way. The lookup is just walking the rbtree, so holding it for read should be fine there. The "get" is bumping the refcount and (possibly) removing it from the empty list. I see no need to hold the snap_rwsem for write for that. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/dir.c')
0 files changed, 0 insertions, 0 deletions