aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2020-12-10 13:35:46 -0500
committerIlya Dryomov <idryomov@gmail.com>2021-02-16 12:09:51 +0100
commit64f36da5625f7f9853b86750eaa89d499d16a2e9 (patch)
tree196d189e036cbe52d99cea9f6cb3fade04f2c769 /fs/ceph/inode.c
parentLinux 5.11 (diff)
downloadlinux-dev-64f36da5625f7f9853b86750eaa89d499d16a2e9.tar.xz
linux-dev-64f36da5625f7f9853b86750eaa89d499d16a2e9.zip
ceph: fix flush_snap logic after putting caps
A primary reason for skipping ceph_check_caps after putting the references was to avoid the locking in ceph_check_caps during a reconnect. __ceph_put_cap_refs can still call ceph_flush_snaps in that case though, and that takes many of the same inconvenient locks. Fix the logic in __ceph_put_cap_refs to skip flushing snaps when the skip_checking_caps flag is set. Fixes: e64f44a88465 ("ceph: skip checking caps when session reconnecting and releasing reqs") Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/inode.c')
0 files changed, 0 insertions, 0 deletions