Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93713f3b authored by Eric Dumazet's avatar Eric Dumazet Committed by James Bottomley
Browse files

[SCSI] bnx2i: use kthread_create_on_node()



bnx2i_percpu_thread_create() create per cpu kthread, and should use
proper NUMA aware API.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarEddie Wai <eddie.wai@broadcom.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 1ec90174
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -393,7 +393,8 @@ static void bnx2i_percpu_thread_create(unsigned int cpu)

	p = &per_cpu(bnx2i_percpu, cpu);

	thread = kthread_create(bnx2i_percpu_io_thread, (void *)p,
	thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
					cpu_to_node(cpu),
					"bnx2i_thread/%d", cpu);
	/* bind thread to the cpu */
	if (likely(!IS_ERR(thread))) {