block: add sync_blockdev_range()
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Tue, 12 Apr 2022 03:23:10 +0000 (12:23 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 23 May 2022 02:17:30 +0000 (11:17 +0900)
commit97d6fb1b48f5e6f6d58028593defe8a23641b0b4
tree25ac3bf238f7da9006951e87b6c359a1d04b6f6b
parent9b002894b4c252169abc26720452bf3746114b20
block: add sync_blockdev_range()

sync_blockdev_range() is to support syncing multiple sectors
with as few block device requests as possible, it is helpful
to make the block device to give full play to its performance.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
block/bdev.c
include/linux/blkdev.h