summaryrefslogtreecommitdiff
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2021-09-02 19:47:01 +0300
committerIlya Dryomov <idryomov@gmail.com>2021-11-08 05:29:51 +0300
commit3c3050267e3c9a230f23a5621d7c6bd084d15094 (patch)
tree59d272dacf493f6fc83e9e1e37791c0dff5bd19e /fs/ceph/caps.c
parentc35cac610a24f8b2e2d6f6535b7300d3bb2e5c29 (diff)
downloadlinux-3c3050267e3c9a230f23a5621d7c6bd084d15094.tar.xz
ceph: fix auth cap handling logic in remove_session_caps_cb
The existing logic relies on ci->i_auth_cap being NULL, but if we end up removing the auth cap early, then we'll do a lot of useless work and lock-taking on the remaining caps. Ensure that we only do the auth cap removal when we're _actually_ removing the auth cap. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
0 files changed, 0 insertions, 0 deletions