]> asedeno.scripts.mit.edu Git - linux.git/commit
ceph: clean up spinlocking and list handling around cleanup_cap_releases()
authorJeff Layton <jlayton@redhat.com>
Thu, 19 Oct 2017 12:53:58 +0000 (08:53 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 11:11:42 +0000 (12:11 +0100)
commitc8a96a31cb04c7664626ab6ada7f66c98c09efbd
treef84590b407cb514868f6c03516a24fcf09915d74
parent9568c93ecab92d3ee60f2f6bec4e4d91641c61a6
ceph: clean up spinlocking and list handling around cleanup_cap_releases()

Functions that release a lock taken in a parent frame are notoriously
hard to follow. Split cleanup_cap_releases into two functions, one to
detach the cap releases from the session (which should be called with
the spinlock held), and another to dispose of those caps.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c