Skip to content

Commit faaf18d

Browse files
Frederic Weisbeckermartinkpetersen
authored andcommitted
scsi: qedi: Use kthread_create_on_cpu()
Use the proper API instead of open coding it. However it looks like qedi_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 f33f1a8 commit faaf18d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/scsi/qedi/qedi_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,13 +1961,11 @@ static int qedi_cpu_online(unsigned int cpu)
19611961
struct qedi_percpu_s *p = this_cpu_ptr(&qedi_percpu);
19621962
struct task_struct *thread;
19631963

1964-
thread = kthread_create_on_node(qedi_percpu_io_thread, (void *)p,
1965-
cpu_to_node(cpu),
1966-
"qedi_thread/%d", cpu);
1964+
thread = kthread_create_on_cpu(qedi_percpu_io_thread, (void *)p,
1965+
cpu, "qedi_thread/%d");
19671966
if (IS_ERR(thread))
19681967
return PTR_ERR(thread);
19691968

1970-
kthread_bind(thread, cpu);
19711969
p->iothread = thread;
19721970
wake_up_process(thread);
19731971
return 0;

0 commit comments

Comments
 (0)