Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -1
+3 -1
drivers/md/dm.c
··· 1744 1744 } 1745 1745 1746 1746 /* 1747 - * If in ->queue_bio we need to use blk_queue_split(), otherwise 1747 + * If in ->submit_bio we need to use blk_queue_split(), otherwise 1748 1748 * queue_limits for abnormal requests (e.g. discard, writesame, etc) 1749 1749 * won't be imposed. 1750 + * If called from dm_wq_work() for deferred bio processing, bio 1751 + * was already handled by following code with previous ->submit_bio. 1750 1752 */ 1751 1753 if (current->bio_list) { 1752 1754 if (is_abnormal_io(bio))