]> git.ipfire.org Git - people/arne_f/kernel.git/commit
dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 8 Dec 2016 00:56:06 +0000 (16:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 10:16:23 +0000 (11:16 +0100)
commit1ca66d6a19d231ee635296e636439e704cde1a47
tree56876570d3e03cb5cab30eea25f93ae52accc507
parentd948d3b1e4168a06eaf7336084f4e7ba81f358bf
dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device

commit 301fc3f5efb98633115bd887655b19f42c6dfaa8 upstream.

When dm_table_set_type() is used by a target to establish a DM table's
type (e.g. DM_TYPE_MQ_REQUEST_BASED in the case of DM multipath) the
DM core must go on to verify that the devices in the table are
compatible with the established type.

Fixes: e83068a5 ("dm mpath: add optional "queue_mode" feature")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-table.c