ceph: drop private list from remove_session_caps_cb
authorJeff Layton <jlayton@kernel.org>
Thu, 2 Sep 2021 16:34:21 +0000 (12:34 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Nov 2021 02:29:51 +0000 (03:29 +0100)
commitc35cac610a24f8b2e2d6f6535b7300d3bb2e5c29
treea80a2bc2dbce79fa859cf0f53e67f0c693e9e436
parent8006daff5f94b157ab1df7c6eb1b55fc470d0d24
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>
fs/ceph/mds_client.c