blk-mq: Fix tagset reinit in the presence of cpu hot-unplug
authorSagi Grimberg <sagi@grimberg.me>
Mon, 13 Mar 2017 14:10:11 +0000 (16:10 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 13 Mar 2017 14:14:23 +0000 (08:14 -0600)
commit0067d4b020ea07a58540acb2c5fcd3364bf326e0
tree9e2e1375e8db4eb35eb7419b33c5f8cde51afefc
parentf5fe1b51905df7cfe4fdfd85c5fb7bc5b71a094f
blk-mq: Fix tagset reinit in the presence of cpu hot-unplug

In case cpu was unplugged, we need to make sure not to assume
that the tags for that cpu are still allocated. so check
for null tags when reinitializing a tagset.

Reported-by: Yi Zhang <yizhan@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c