diff options
author | Barry Song <21cnbao@gmail.com> | 2022-02-19 06:27:24 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2022-02-22 13:55:51 -0500 |
commit | a6a4901a5ef35070297c769120fea04145df0aaa (patch) | |
tree | fa66295eb4231621a0b28c49ee98479441507349 /drivers/md/dm-io.c | |
parent | 75274a4bf2da6b17155f8b4e54c4bb3b665c95e3 (diff) | |
download | linux-a6a4901a5ef35070297c769120fea04145df0aaa.tar.gz linux-a6a4901a5ef35070297c769120fea04145df0aaa.tar.bz2 linux-a6a4901a5ef35070297c769120fea04145df0aaa.zip |
dm io: remove stale comment block for dm_io()
Commit 7eaceaccab5f ("block: remove per-queue plugging") dropped
unplug_delay and blk_unplug(). Plus, the current kernel has no
fundamental difference between sync_io() and async_io() except
sync_io() uses sync_io_complete() as the notify.fn and explicitly
calls wait_for_completion_io() to sync. The comment isn't valid
any more.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-io.c')
-rw-r--r-- | drivers/md/dm-io.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index 23e038f8dc84..32f8f4ed5e0d 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c @@ -525,14 +525,6 @@ static int dp_init(struct dm_io_request *io_req, struct dpages *dp, return 0; } -/* - * New collapsed (a)synchronous interface. - * - * If the IO is asynchronous (i.e. it has notify.fn), you must either unplug - * the queue with blk_unplug() some time later or set REQ_SYNC in - * io_req->bi_opf. If you fail to do one of these, the IO will be submitted to - * the disk after q->unplug_delay, which defaults to 3ms in blk-settings.c. - */ int dm_io(struct dm_io_request *io_req, unsigned num_regions, struct dm_io_region *where, unsigned long *sync_error_bits) { |