blk-mq: allocate blk_mq_tags and requests in correct node
authorShaohua Li <shli@fb.com>
Wed, 1 Feb 2017 17:53:14 +0000 (09:53 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 2 Mar 2017 15:56:04 +0000 (08:56 -0700)
commit59f082e464ae0533813d5a1c3149b22563da93d7
treea77cee5b021bf86029847ef2696c30589086a640
parent4977ab6e92e267afe9d8f78438c3db330ca8434c
blk-mq: allocate blk_mq_tags and requests in correct node

blk_mq_tags/requests of specific hardware queue are mostly used in
specific cpus, which might not be in the same numa node as disk. For
example, a nvme card is in node 0. half hardware queue will be used by
node 0, the other node 1.

Signed-off-by: Shaohua Li <shli@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c