summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/syscall-counts-record
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-07-15 14:06:21 +0200
committerJan Kara <jack@suse.cz>2020-07-15 15:23:28 +0200
commit47aaabdedf366ac5894c7fddec388832f0d8193e (patch)
tree6e57adb2dc53d571eaa165a8e2810cef00a90332 /tools/perf/scripts/python/bin/syscall-counts-record
parent0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 (diff)
fanotify: Avoid softlockups when reading many events
When user provides large buffer for events and there are lots of events available, we can try to copy them all to userspace without scheduling which can softlockup the kernel (furthermore exacerbated by the contention on notification_lock). Add a scheduling point after copying each event. Note that usually the real underlying problem is the cost of fanotify event merging and the resulting contention on notification_lock but this is a cheap way to somewhat reduce the problem until we can properly address that. Reported-by: Francesco Ruggeri <fruggeri@arista.com> Link: https://lore.kernel.org/lkml/20200714025417.A25EB95C0339@us180.sjc.aristanetworks.com Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-record')
0 files changed, 0 insertions, 0 deletions