diff options
author | Jeff Layton <jlayton@kernel.org> | 2021-09-02 12:47:01 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-11-08 03:29:51 +0100 |
commit | 3c3050267e3c9a230f23a5621d7c6bd084d15094 (patch) | |
tree | 59d272dacf493f6fc83e9e1e37791c0dff5bd19e /crypto/cipher.c | |
parent | c35cac610a24f8b2e2d6f6535b7300d3bb2e5c29 (diff) |
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 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions