]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd39ff78cb1b44d92f50fb6b613e2817b89711a0b
treea80a2bc2dbce79fa859cf0f53e67f0c693e9e436
parent7b407c13fcc937c72d544ec54289d92af51aa5f8
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