]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72283761afc88eb6f387a05d3ecefc308fde4f4a
tree9e2e1375e8db4eb35eb7419b33c5f8cde51afefc
parent0b0dc3de025d71a675f2aef3fd38eb903b80f119
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