[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <e961019b6ad33891fe70ffdd9ee6b78ffa84c396.1473291702.git.osandov@fb.com>
Date: Wed, 7 Sep 2016 16:46:03 -0700
From: Omar Sandoval <osandov@...ndov.com>
To: Jens Axboe <axboe@...com>, linux-block@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, kernel-team@...com
Subject: [PATCH v2 2/5] scale_bitmap: allocate wait queues on a specific node
From: Omar Sandoval <osandov@...com>
The original `bt_alloc()` we converted from was using `kzalloc()`, not
`kzalloc_node()`, to allocate the wait queues. This was probably an
oversight, so fix it for `scale_bitmap_queue_init_node()`.
Signed-off-by: Omar Sandoval <osandov@...com>
---
lib/scale_bitmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/scale_bitmap.c b/lib/scale_bitmap.c
index 4d47c19..237170c 100644
--- a/lib/scale_bitmap.c
+++ b/lib/scale_bitmap.c
@@ -212,7 +212,7 @@ int scale_bitmap_queue_init_node(struct scale_bitmap_queue *sbq,
atomic_set(&sbq->wake_index, 0);
- sbq->ws = kzalloc(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags);
+ sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node);
if (!sbq->ws) {
scale_bitmap_free(&sbq->map);
return -ENOMEM;
--
2.9.3
Powered by blists - more mailing lists