aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2020-09-21 19:08:30 -0400
committerMike Snitzer <snitzer@redhat.com>2020-09-21 19:49:15 -0400
commitcf9c37865557d39292d82da29e9ebda1dbc584b3 (patch)
tree2ddf084bd5aa5f63a5a3fedad5cfcae7eede6f10 /drivers/md/dm.c
parentdm: fix bio splitting and its bio completion order for regular IO (diff)
downloadlinux-dev-cf9c37865557d39292d82da29e9ebda1dbc584b3.tar.xz
linux-dev-cf9c37865557d39292d82da29e9ebda1dbc584b3.zip
dm: fix comment in dm_process_bio()
Refer to the correct function (->submit_bio instead of ->queue_bio). Also, add details about why using blk_queue_split() isn't needed for dm_wq_work()'s call to dm_process_bio(). Fixes: c62b37d96b6eb ("block: move ->make_request_fn to struct block_device_operations") Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index d948cd522431..6ed05ca65a0f 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1744,9 +1744,11 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,
}
/*
- * If in ->queue_bio we need to use blk_queue_split(), otherwise
+ * If in ->submit_bio we need to use blk_queue_split(), otherwise
* queue_limits for abnormal requests (e.g. discard, writesame, etc)
* won't be imposed.
+ * If called from dm_wq_work() for deferred bio processing, bio
+ * was already handled by following code with previous ->submit_bio.
*/
if (current->bio_list) {
if (is_abnormal_io(bio))