summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-06-25 14:30:42 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-07-02 11:24:48 +0200
commitd642d6262f4fcfa5d200ec6e218c17f0c15b3390 (patch)
tree6070bb929fabaad4c5839b48bb8f423f2d44ca40 /drivers/s390
parentb17e3abb0af404cb62ad4ef1a5962f58b06e2b78 (diff)
downloadblackbird-op-linux-d642d6262f4fcfa5d200ec6e218c17f0c15b3390.tar.gz
blackbird-op-linux-d642d6262f4fcfa5d200ec6e218c17f0c15b3390.zip
s390/scm_blk: correct numa_node in scm_blk_dev_setup
The numa_node field of the tag_set struct has to be explicitly initialized, otherwise it stays as 0, which is a valid numa node id and cause memory allocation failure if node 0 is offline. Acked-by: Sebastian Ott <sebott@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/scm_blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/block/scm_blk.c b/drivers/s390/block/scm_blk.c
index b1fcb76dd272..98f66b7b6794 100644
--- a/drivers/s390/block/scm_blk.c
+++ b/drivers/s390/block/scm_blk.c
@@ -455,6 +455,7 @@ int scm_blk_dev_setup(struct scm_blk_dev *bdev, struct scm_device *scmdev)
bdev->tag_set.nr_hw_queues = nr_requests;
bdev->tag_set.queue_depth = nr_requests_per_io * nr_requests;
bdev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
+ bdev->tag_set.numa_node = NUMA_NO_NODE;
ret = blk_mq_alloc_tag_set(&bdev->tag_set);
if (ret)
OpenPOWER on IntegriCloud