diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-10-19 14:53:58 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 12:11:42 +0100 |
commit | c8a96a31cb04c7664626ab6ada7f66c98c09efbd (patch) | |
tree | f84590b407cb514868f6c03516a24fcf09915d74 /init | |
parent | rbd: get rid of rbd_mapping::read_only (diff) | |
download | linux-c8a96a31cb04c7664626ab6ada7f66c98c09efbd.tar.xz linux-c8a96a31cb04c7664626ab6ada7f66c98c09efbd.zip |
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions