linux-stable/fs/ceph
Xiubo Li d9d00f71ab ceph: voluntarily drop Xx caps for requests those touch parent mtime
For write requests the parent's mtime will be updated correspondingly.
And if the 'Xx' caps is issued and when releasing other caps together
with the write requests the MDS Locker will try to eval the xattr lock,
which need to change the locker state excl --> sync and need to do Xx
caps revocation.

Just voluntarily dropping CEPH_CAP_XATTR_EXCL caps to avoid a cap
revoke message, which could cause the mtime will be overwrote by stale
one.

[ idryomov: break unnecessarily long lines ]

Link: https://tracker.ceph.com/issues/61584
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2023-06-30 12:08:55 +02:00
..
acl.c fs: port acl to mnt_idmap 2023-01-19 09:24:28 +01:00
addr.c ceph: implement writeback livelock avoidance using page tagging 2023-04-30 12:37:28 +02:00
cache.c
cache.h
caps.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-08 08:56:25 +02:00
ceph_frag.c
debugfs.c ceph: fix potential use-after-free bug when trimming caps 2023-04-30 12:37:28 +02:00
dir.c ceph: voluntarily drop Xx caps for requests those touch parent mtime 2023-06-30 12:08:55 +02:00
export.c ceph: fail the open_by_handle_at() if the dentry is being unlinked 2022-10-04 19:18:08 +02:00
file.c ceph: voluntarily drop Xx caps for requests those touch parent mtime 2023-06-30 12:08:55 +02:00
inode.c fs.idmapped.v6.3 2023-02-20 11:53:11 -08:00
io.c
io.h
ioctl.c ceph: remove useless session parameter for check_caps() 2022-12-12 19:15:39 +01:00
ioctl.h
Kconfig
locks.c filelock: move file locking definitions to separate header file 2023-01-11 06:52:32 -05:00
Makefile
mds_client.c ceph: try to dump the msgs when decoding fails 2023-06-30 12:08:54 +02:00
mds_client.h ceph: reorder fields in 'struct ceph_snapid_map' 2023-04-30 12:37:28 +02:00
mdsmap.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
metric.c ceph: only send metrics when the MDS rank is ready 2023-06-30 12:08:54 +02:00
metric.h
quota.c
snap.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-08 08:56:25 +02:00
strings.c
super.c
super.h ceph: fix potential use-after-free bug when trimming caps 2023-04-30 12:37:28 +02:00
util.c
xattr.c A few filesystem improvements, with a rather nasty use-after-free fix 2023-05-04 14:48:02 -07:00