]> www.infradead.org Git - users/jedix/linux-maple.git/commit
blk-mq: avoid setting hctx->tags->cpumask before allocation
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 26 Sep 2015 17:09:19 +0000 (02:09 +0900)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 17 Aug 2016 22:15:03 +0000 (15:15 -0700)
commitdd5d896f225498f5445b25d5b13ec0e34e6feeef
tree9c75409e605e6a71876329b7b4a24b451b05afbc
parent61330da22e8574967fe602706773387456ea070c
blk-mq: avoid setting hctx->tags->cpumask before allocation

Orabug: 24465370,24464170,24300199

When unmapped hw queue is remapped after CPU topology is changed,
hctx->tags->cpumask has to be set after hctx->tags is setup in
blk_mq_map_swqueue(), otherwise it causes null pointer dereference.

Fixes: f26cdc8536 ("blk-mq: Shared tag enhancements")
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 1356aae08338f1c19ce1c67bf8c543a267688fc3)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
block/blk-mq.c