md: simplify sync_page_io
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:42 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commit32637385b834062d785a261841980ae7cffea007
treee5c21354d9a0f2f96e40b9b441901a2b8ab96d3e
parenta78f18da669242ad57237070f298212e342bf602
md: simplify sync_page_io

Use an on-stack bio and biovec for the single page synchronous I/O.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c