Skip to content

Commit f33f1a8

Browse files
Frederic Weisbeckermartinkpetersen
authored andcommitted
scsi: bnx2i: Use kthread_create_on_cpu()
Use the proper API instead of open coding it. However it looks like bnx2i_percpu_io_thread() kthread could be replaced by the use of a high prio workqueue instead. Signed-off-by: Frederic Weisbecker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0d19b96 commit f33f1a8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/scsi/bnx2i/bnx2i_init.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,11 @@ static int bnx2i_cpu_online(unsigned int cpu)
415415

416416
p = &per_cpu(bnx2i_percpu, cpu);
417417

418-
thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
419-
cpu_to_node(cpu),
420-
"bnx2i_thread/%d", cpu);
418+
thread = kthread_create_on_cpu(bnx2i_percpu_io_thread, (void *)p,
419+
cpu, "bnx2i_thread/%d");
421420
if (IS_ERR(thread))
422421
return PTR_ERR(thread);
423422

424-
/* bind thread to the cpu */
425-
kthread_bind(thread, cpu);
426423
p->iothread = thread;
427424
wake_up_process(thread);
428425
return 0;

0 commit comments

Comments
 (0)