diff options
author | Yan, Zheng <zyan@redhat.com> | 2020-03-10 14:34:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-29 17:32:58 +0300 |
commit | b71ac8086a7b4d8281e1157762b9d56e41f12865 (patch) | |
tree | b1049f6d5ceabbebdf526d83bd56f23808c1d3a9 /net/mac802154/mib.c | |
parent | acbfccc6a3e3d87bf9bc0ee545b941bb1a5ef9f1 (diff) | |
download | linux-b71ac8086a7b4d8281e1157762b9d56e41f12865.tar.xz |
ceph: don't skip updating wanted caps when cap is stale
[ Upstream commit 0aa971b6fd3f92afef6afe24ef78d9bb14471519 ]
1. try_get_cap_refs() fails to get caps and finds that mds_wanted
does not include what it wants. It returns -ESTALE.
2. ceph_get_caps() calls ceph_renew_caps(). ceph_renew_caps() finds
that inode has cap, so it calls ceph_check_caps().
3. ceph_check_caps() finds that issued caps (without checking if it's
stale) already includes caps wanted by open file, so it skips
updating wanted caps.
Above events can cause an infinite loop inside ceph_get_caps().
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac802154/mib.c')
0 files changed, 0 insertions, 0 deletions