diff options
| author | 2026-09-04 12:33:51 +0200 | |
|---|---|---|
| committer | 2026-10-26 14:15:47 +0100 | |
| commit | 979b7ed4457a04c5a41c36f86052ecc6b76c67d9 (patch) | |
| tree | 13c532804d4f466f36e07ecd9350eec72fadd4e3 /scripts/Makefile.thinlto | |
| parent | ceph: rename ceph_check_page_before_write() to ceph_check_folio_before_write() (diff) | |
ceph: avoid pending truncate during nonblocking cap acquire
Readahead acquires caps while the folios are locked. This can
deadlock when processing a pending truncate; truncate_pagecache() can
then attempt to a folio that is already locked.
Return -EAGAIN instead when `NON_BLOCKING` is set, causing the
readahead to be abandoned.
Cc: stable@vger.kernel.org
Fixes: 49870056005c ("ceph: convert ceph_readpages to ceph_readahead")
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Xiubo Li <xiubo.li@clyso.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
