diff options
| author | Pavel Begunkov <[email protected]> | 2021-01-09 16:03:03 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-25 08:58:24 -0700 |
| commit | c42bca92be928ce7dece5fc04cf68d0e37ee6718 (patch) | |
| tree | 132b3485f416fde3c9d57e9003f826fcb5583d75 /tools/perf/scripts/python | |
| parent | 3e1a88ec96259282b9a8b45c3f1fda7a3ff4f6ea (diff) | |
bio: don't copy bvec for direct IO
The block layer spends quite a while in blkdev_direct_IO() to copy and
initialise bio's bvec. However, if we've already got a bvec in the input
iterator it might be reused in some cases, i.e. when new
ITER_BVEC_FLAG_FIXED flag is set. Simple tests show considerable
performance boost, and it also reduces memory footprint.
Suggested-by: Matthew Wilcox <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Pavel Begunkov <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions