summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2025-09-26 03:26:02 +0300
committerChristian Brauner <brauner@kernel.org>2025-11-05 14:57:23 +0300
commitd43558ae67299266ea54715773610fdec4291c90 (patch)
tree77124e7c54af419a971e12067ce838eba560aa3c /tools/perf/scripts/python
parent87a13819dde34e8af247744e979583a31d353244 (diff)
downloadlinux-d43558ae67299266ea54715773610fdec4291c90.tar.xz
iomap: track pending read bytes more optimally
Instead of incrementing read_bytes_pending for every folio range read in (which requires acquiring the spinlock to do so), set read_bytes_pending to the folio size when the first range is asynchronously read in, keep track of how many bytes total are asynchronously read in, and adjust read_bytes_pending accordingly after issuing requests to read in all the necessary ranges. iomap_read_folio_ctx->cur_folio_in_bio can be removed since a non-zero value for pending bytes necessarily indicates the folio is in the bio. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Suggested-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions