Files
Linux/include/linux
Pavel Begunkov c42bca92be 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]>
2021-01-25 08:58:24 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
2020-12-09 19:26:02 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-01-25 08:58:24 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-02 09:46:55 -07:00
…
…
…
…
…
…
…
…
…
…
…
2020-12-19 11:18:38 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-14 16:24:19 +01:00
…
…
…
2020-12-11 14:02:14 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-02 22:00:22 -08:00
…
…
…
…
…
…
2020-12-10 12:42:59 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-02 22:10:35 -08:00
…
…
…
…
…
2020-12-08 14:14:48 +00:00
…
…
…
…
…
…
…
2020-12-15 16:19:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-15 16:19:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-01-22 15:09:42 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-07 10:29:57 +01:00
…
…
…
…
…
…
…
…
2020-12-04 12:23:25 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-15 15:11:08 -06:00
…
…
…
…
…
2020-12-16 13:08:18 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-03 11:20:52 +01:00
…
…
…
…
2020-12-15 12:13:39 -08:00
…
…
…
…
…
2020-12-07 17:12:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-10 16:17:15 +01:00
…
…
2020-12-15 12:13:37 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-10 10:45:36 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-04 16:54:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-15 12:13:41 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…