Skip to content

Commit 0d19b96

Browse files
Frederic Weisbeckermartinkpetersen
authored andcommitted
scsi: bnx2fc: Use kthread_create_on_cpu()
Use the proper API instead of open coding it. However it looks like bnx2fc_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 4041778 commit 0d19b96

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/scsi/bnx2fc/bnx2fc_fcoe.c

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

26112611
p = &per_cpu(bnx2fc_percpu, cpu);
26122612

2613-
thread = kthread_create_on_node(bnx2fc_percpu_io_thread,
2614-
(void *)p, cpu_to_node(cpu),
2615-
"bnx2fc_thread/%d", cpu);
2613+
thread = kthread_create_on_cpu(bnx2fc_percpu_io_thread,
2614+
(void *)p, cpu, "bnx2fc_thread/%d");
26162615
if (IS_ERR(thread))
26172616
return PTR_ERR(thread);
26182617

2619-
/* bind thread to the cpu */
2620-
kthread_bind(thread, cpu);
26212618
p->iothread = thread;
26222619
wake_up_process(thread);
26232620
return 0;

0 commit comments

Comments
 (0)