commit | c35cac610a24f8b2e2d6f6535b7300d3bb2e5c29 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@kernel.org> | Thu Sep 02 12:34:21 2021 -0400 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Nov 08 03:29:51 2021 +0100 |
tree | a80a2bc2dbce79fa859cf0f53e67f0c693e9e436 | |
parent | 8006daff5f94b157ab1df7c6eb1b55fc470d0d24 [diff] |
ceph: drop private list from remove_session_caps_cb This function does a lot of list-shuffling with cap flushes, all to avoid possibly freeing a slab allocation under spinlock (which is totally ok). Simplify the code by just detaching and freeing the cap flushes in place. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>