dm: allocate blk_mq_tag_set rather than embed in mapped_device
authorMike Snitzer <snitzer@redhat.com>
Sat, 6 Feb 2016 22:01:17 +0000 (17:01 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 22 Feb 2016 17:07:14 +0000 (12:07 -0500)
commit1c357a1e86a4227a6b6059f2de118ae47659cebc
tree298288819def8e1584bbab98510288f0f9cabc1b
parentfaad87df4b907605815c711dca613b3e7755e0d9
dm: allocate blk_mq_tag_set rather than embed in mapped_device

The blk_mq_tag_set is only needed for dm-mq support.  There is point
wasting space in 'struct mapped_device' for non-dm-mq devices.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> # check kzalloc return
drivers/md/dm.c