Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1478681 > unrolled thread

[PATCH v2 2/5] scale_bitmap: allocate wait queues on a specific node

Started byOmar Sandoval <osandov@osandov.com>
First post2016-09-08 01:50 +0200
Last post2016-09-08 01:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 2/5] scale_bitmap: allocate wait queues on a specific node Omar Sandoval <osandov@osandov.com> - 2016-09-08 01:50 +0200

#1478681 — [PATCH v2 2/5] scale_bitmap: allocate wait queues on a specific node

FromOmar Sandoval <osandov@osandov.com>
Date2016-09-08 01:50 +0200
Subject[PATCH v2 2/5] scale_bitmap: allocate wait queues on a specific node
Message-ID<seULn-6B3-1@gated-at.bofh.it>
From: Omar Sandoval <osandov@fb.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@fb.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web