block: add plug while submitting IO
authorYu Kuai <yukuai3@huawei.com>
Thu, 9 May 2024 12:38:25 +0000 (20:38 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2024 13:57:37 +0000 (07:57 -0600)
commit060406c61c7cb4bbd82a02d179decca9c9bb3443
treeb61bd7831d1740ac42c26dc78c38b3bc28772dea
parent3a861560ccb35f2a4f0a4b8207fa7c2a35fc7f31
block: add plug while submitting IO

So that if caller didn't use plug, for example, __blkdev_direct_IO_simple()
and __blkdev_direct_IO_async(), block layer can still benefit from caching
nsec time in the plug.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240509123825.3225207-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c