aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2021-06-16 21:22:28 +0000
committerLinus Torvalds <[email protected]>2021-06-18 20:49:07 +0000
commit9620ad86d0e3e8fda4a23efc22e0b2ae4ded1105 (patch)
tree3d79aa05ed9f88b8d5e52cd49de692233fae030b /tools/perf/scripts/python
parentMerge tag 'arc-5.13-rc7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-9620ad86d0e3e8fda4a23efc22e0b2ae4ded1105.tar.gz
kernel-9620ad86d0e3e8fda4a23efc22e0b2ae4ded1105.zip
afs: Re-enable freezing once a page fault is interrupted
If a task is killed during a page fault, it does not currently call sb_end_pagefault(), which means that the filesystem cannot be frozen at any time thereafter. This may be reported by lockdep like this: ==================================== WARNING: fsstress/10757 still has locks held! 5.13.0-rc4-build4+ #91 Not tainted ------------------------------------ 1 lock held by fsstress/10757: #0: ffff888104eac530 ( sb_pagefaults as filesystem freezing is modelled as a lock. Fix this by removing all the direct returns from within the function, and using 'ret' to indicate whether we were interrupted or successful. Fixes: 1cf7a1518aef ("afs: Implement shared-writeable mmap") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: David Howells <[email protected]> cc: [email protected] Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions