diff options
| author | Zhang Yi <[email protected]> | 2022-09-01 21:34:53 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:26:06 -0700 |
| commit | fdee117ee86479fd2644bcd9ac2b2469e55722d1 (patch) | |
| tree | a2a4e97bd7dbba96807d47d3f080e7a99281cf6d /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 214f8796907b8015b778badf4710a4701472779a (diff) | |
fs/buffer: add some new buffer read helpers
Current ll_rw_block() helper is fragile because it assumes that locked
buffer means it's under IO which is submitted by some other who holds
the lock, it skip buffer if it failed to get the lock, so it's only
safe on the readahead path. Unfortunately, now that most filesystems
still use this helper mistakenly on the sync metadata read path. There
is no guarantee that the one who holds the buffer lock always submit IO
(e.g. buffer_migrate_folio_norefs() after commit 88dbcbb3a484 ("blkdev:
avoid migration stalls for blkdev pages"), it could lead to false
positive -EIO when submitting reading IO.
This patch add some friendly buffer read helpers to prepare replacing
ll_rw_block() and similar calls. We can only call bh_readahead_[]
helpers for the readahead paths.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions