diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2025-09-25 17:26:02 -0700 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-05 12:57:23 +0100 |
| commit | d43558ae67299266ea54715773610fdec4291c90 (patch) | |
| tree | 77124e7c54af419a971e12067ce838eba560aa3c /scripts/lib/kdoc/kdoc_re.py | |
| parent | 87a13819dde34e8af247744e979583a31d353244 (diff) | |
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 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
