Skip to content

Commit 18954e7

Browse files
committed
scsi: bnx2i: Use kthread_create_on_cpu()
JIRA: https://issues.redhat.com/browse/RHEL-90552 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 <frederic@kernel.org> Link: https://lore.kernel.org/r/20241211154035.75565-5-frederic@kernel.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> (cherry picked from commit f33f1a8) Signed-off-by: Chris Leech <cleech@redhat.com>
1 parent fdf7f89 commit 18954e7

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)