dm: fix dm_wq_work() to only use __split_and_process_bio() if appropriate
authorMike Snitzer <snitzer@redhat.com>
Thu, 17 Jan 2019 19:33:01 +0000 (14:33 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 22 Jan 2019 18:41:40 +0000 (13:41 -0500)
commit6548c7c538e5658cbce686c2dd1a9b4f5398bf34
tree76072581391f6bf0f473db1d4bfbed12bf0d076f
parenta1e1cb72d96491277ede8d257ce6b48a381dd336
dm: fix dm_wq_work() to only use __split_and_process_bio() if appropriate

Otherwise targets that don't support/expect IO splitting could resubmit
bios using code paths with unnecessary IO splitting complexity.

Depends-on: 24113d487843 ("dm: avoid indirect call in __dm_make_request")
Fixes: 978e51ba38e00 ("dm: optimize bio-based NVMe IO submission")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c