dm mpath: factor out SCSI vs NVMe path selection
authorMike Snitzer <snitzer@redhat.com>
Mon, 11 Dec 2017 16:02:29 +0000 (11:02 -0500)
committerMike Snitzer <snitzer@redhat.com>
Sat, 6 Jan 2018 16:23:28 +0000 (11:23 -0500)
commit0001ec565db7ed01a6cc9575453900801bd0841b
tree61966fab8c4514c0740807546ee96ffe4a7571f0
parent848b8aefd44df99b3e38a872acb8d54d3530bebf
dm mpath: factor out SCSI vs NVMe path selection

Trying to do both SCSI and NVMe bio-based handling with branching in the
same common code has proven too tedious on a code maintenance level.  In
addition it slightly hurts IO performance.

Fix this by factoring out __map_bio() and __map_bio_nvme().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c