summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAditya Prakash Srivastava <aditya.ansh182@gmail.com>2026-09-14 09:31:51 +0000
committerCarlos Maiolino <cem@kernel.org>2026-10-05 10:04:42 +0200
commitaa5dba2d217f0df5e14ac6222861a42f10d0aabc (patch)
tree83c27024a323b0f33c5cc0a5aef2805b6e5eda9b /tools/perf/scripts/python
parentddeb5fe2d8a8645d033d868117571649184d64ab (diff)
xfs: prevent close() from hanging on frozen filesystems
When a file is closed, xfs_file_release() attempts to trim speculative post-EOF blocks. This requires allocating a transaction, which blocks indefinitely if the filesystem is frozen. Fix the hang by wrapping the preallocation cleanup block with sb_start_write_trylock() and xfs_ilock_nowait() to bypass the trim best-effort when the filesystem is frozen or locking fails. Suggested-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Aditya Prakash Srivastava <aditya.ansh182@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions