dm table: train hybrid target type detection to select blk-mq if appropriate
authorMike Snitzer <snitzer@redhat.com>
Thu, 18 Dec 2014 21:26:47 +0000 (16:26 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 9 Feb 2015 18:06:47 +0000 (13:06 -0500)
commit65803c2059832fb99b992728157f7924c2e42d4b
tree02ba090a7ff05070a3bb999708ceee67dadd0a10
parente5863d9ad754926e7d3f38b43ac8bd48ef73b097
dm table: train hybrid target type detection to select blk-mq if appropriate

Otherwise replacing the multipath target with the error target fails:
  device-mapper: ioctl: can't change device type after initial table load.

The error target was mistakenly considered to be target type
DM_TYPE_REQUEST_BASED rather than DM_TYPE_MQ_REQUEST_BASED even if the
target it was to replace was of type DM_TYPE_MQ_REQUEST_BASED.

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