]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - block/blk-mq.c
blk-mq: realloc hctx when hw queue is mapped to another node
authorJianchao Wang <jianchao.w.wang@oracle.com>
Fri, 12 Oct 2018 10:07:27 +0000 (18:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Oct 2018 21:42:02 +0000 (15:42 -0600)
commit34d11ffac1f56c3895dad32153abd6814452dc77
tree6c3cba5436908d5323a991d579ff8f9be88f122d
parent5b202853ffbc54b29f23c4b1b5f3948efab489a2
blk-mq: realloc hctx when hw queue is mapped to another node

When the hw queues and mq_map are updated, a hctx could be mapped
to a different numa node. At this moment, we need to realloc the
hctx. If fail to do that, go on using previous hctx.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c