Commit cf9c3786 authored by Mike Snitzer's avatar Mike Snitzer

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: c62b37d9 ("block: move ->make_request_fn to struct block_device_operations")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent ee1dfad5
...@@ -1744,9 +1744,11 @@ static blk_qc_t dm_process_bio(struct mapped_device *md, ...@@ -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) * queue_limits for abnormal requests (e.g. discard, writesame, etc)
* won't be imposed. * 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 (current->bio_list) {
if (is_abnormal_io(bio)) if (is_abnormal_io(bio))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment