dm: improve abnormal bio processing
authorMike Snitzer <snitzer@kernel.org>
Sun, 17 Apr 2022 17:00:15 +0000 (13:00 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 5 May 2022 21:31:36 +0000 (17:31 -0400)
commit4edadf6dcb54d2a86eeb424f27122dc0076d9267
tree8e634b6498b61816eeb6bdeb30ef8f77c1741a39
parent9d20653fe84ebd772c3af71808e6a727603e0b71
dm: improve abnormal bio processing

Read/write/flush are the most common operations, optimize switch in
is_abnormal_io() for those cases. Follows same pattern established in
block perf-wip commit ("block: optimise blk_may_split for normal rw")

Also, push is_abnormal_io() check and blk_queue_split() down from
dm_submit_bio() to dm_split_and_process_bio() and set new
'is_abnormal_io' flag in clone_info. Optimize __split_and_process_bio
and __process_abnormal_io by leveraging ci.is_abnormal_io flag.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c