android_kernel_motorola_sm6375/fs/ceph
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Luis Henriques a753e3f334 ceph: reduce contention in ceph_check_delayed_caps()
commit bf2ba432213fade50dd39f2e348085b758c0726e upstream.

Function ceph_check_delayed_caps() is called from the mdsc->delayed_work
workqueue and it can be kept looping for quite some time if caps keep
being added back to the mdsc->cap_delay_list.  This may result in the
watchdog tainting the kernel with the softlockup flag.

This patch breaks this loop if the caps have been recently (i.e. during
the loop execution).  Any new caps added to the list will be handled in
the next run.

Also, allow schedule_delayed() callers to explicitly set the delay value
instead of defaulting to 5s, so we can ensure that it runs soon
afterward if it looks like there is more work.

Cc: [email protected]
URL: https://tracker.ceph.com/issues/46284
Signed-off-by: Luis Henriques <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-08-18 08:56:57 +02:00
..
acl.c
addr.c ceph: remove bogus checks and WARN_ONs from ceph_set_page_dirty 2021-07-20 16:10:48 +02:00
cache.c
cache.h
caps.c ceph: reduce contention in ceph_check_delayed_caps() 2021-08-18 08:56:57 +02:00
ceph_frag.c
debugfs.c
dir.c
export.c ceph: fix inode leak on getattr error in __fh_to_dentry 2021-05-19 10:08:26 +02:00
file.c
inode.c ceph: fix fscache invalidation 2021-05-22 11:38:29 +02:00
io.c
io.h
ioctl.c
ioctl.h
Kconfig
locks.c
Makefile
mds_client.c ceph: reduce contention in ceph_check_delayed_caps() 2021-08-18 08:56:57 +02:00
mds_client.h
mdsmap.c
quota.c
snap.c
strings.c
super.c
super.h ceph: reduce contention in ceph_check_delayed_caps() 2021-08-18 08:56:57 +02:00
xattr.c