Yan, Zheng
b71ac8086a
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" <[email protected] >
Reviewed-by: Jeff Layton <[email protected] >
Signed-off-by: Ilya Dryomov <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2020-04-29 16:32:58 +02:00
..
acl.c
ceph: rename struct ceph_acls_info to ceph_acl_sec_ctx
2019-07-08 14:01:42 +02:00
addr.c
ceph: use release_pages() directly
2019-09-16 12:06:25 +02:00
cache.c
ceph: include ceph_debug.h in cache.c
2019-09-16 12:06:25 +02:00
cache.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 188
2019-05-30 11:29:21 -07:00
caps.c
ceph: don't skip updating wanted caps when cap is stale
2020-04-29 16:32:58 +02:00
ceph_frag.c
debugfs.c
ceph: don't return a value from void function
2019-09-16 12:06:25 +02:00
dir.c
ceph: fix compat_ioctl for ceph_dir_operations
2019-12-17 19:55:31 +01:00
export.c
ceph: return ceph_mdsc_do_request() errors from __get_parent()
2020-04-29 16:32:58 +02:00
file.c
ceph: check POOL_FLAG_FULL/NEARFULL in addition to OSDMAP_FULL/NEARFULL
2020-04-01 11:01:58 +02:00
inode.c
ceph: add missing check in d_revalidate snapdir handling
2019-10-29 22:29:55 +01:00
io.c
ceph: add buffered/direct exclusionary locking for reads and writes
2019-09-16 12:06:25 +02:00
io.h
ceph: add buffered/direct exclusionary locking for reads and writes
2019-09-16 12:06:25 +02:00
ioctl.c
ioctl.h
Kconfig
ceph: add selinux support
2019-07-08 14:01:42 +02:00
locks.c
ceph: return -EIO if read/write against filp that lost file locks
2019-09-16 12:06:24 +02:00
Makefile
ceph: add buffered/direct exclusionary locking for reads and writes
2019-09-16 12:06:25 +02:00
mds_client.c
ceph: check availability of mds cluster on mount after wait timeout
2020-02-24 08:36:59 +01:00
mds_client.h
ceph: eliminate session->s_trim_caps
2019-09-16 12:06:24 +02:00
mdsmap.c
ceph: have MDS map decoding use entity_addr_t decoder
2019-07-08 14:01:43 +02:00
quota.c
ceph: fix infinite loop in get_quota_realm()
2019-07-08 14:01:42 +02:00
snap.c
ceph: fix memory leak in ceph_cleanup_snapid_map()
2020-04-01 11:01:59 +02:00
strings.c
super.c
ceph: canonicalize server path in place
2020-04-13 10:48:11 +02:00
super.h
ceph: canonicalize server path in place
2020-04-13 10:48:11 +02:00
xattr.c
ceph: allow arbitrary security.* xattrs
2019-09-16 12:06:25 +02:00