bio: optimize initialization of a bio
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 15:20:04 +0000 (09:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 22:37:11 +0000 (16:37 -0600)
commit4675d158e0d4f155f67e848c3a472c2c4f3add2e
tree051ffa110e973b0cdc206758d5556351c4917748
parenta1e981ea2c6679ca49bcd8b16fd7a833e691561a
bio: optimize initialization of a bio

The memset() used is measurably slower in targeted benchmarks. Get rid
of it and fill in the bio manually, in a separate helper.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c