NVMe: Set affinity after allocating request queues
authorKeith Busch <keith.busch@intel.com>
Thu, 3 Sep 2015 14:18:17 +0000 (08:18 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 23 Sep 2015 20:45:57 +0000 (14:45 -0600)
commitbda4e0fb3126aca15586d165b5a15a37edc0a984
tree0fbe3bc3f63b56b0d491ca8f870b4672a2546f20
parentadbe734b2ae5517b8659997909677687b963d73c
NVMe: Set affinity after allocating request queues

The asynchronous namespace scanning caused affinity hints to be set before
its tagset initialized, so there was no cpu mask to set the hint. This
patch moves the affinity hint setting to after namespaces are scanned.

Reported-by: 김경산 <ks0204.kim@samsung.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c