kthread: remove worker->task self-assignment
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/25 patches 0 repliesNew
- v1 posting 1/21 patch 0 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | media: ivtv: convert to kthread_run_workerdrivers/ drivers/ | +7 | 0 replies | |
| 1/5 | media: ivtv: convert to kthread_run_workerdrivers/ drivers/ | +7 | 0 replies | |
| 2/5 | net: encx24j600: convert to kthread_run_workerdrivers/ | +8 | 0 replies | |
| 2/5 | net: encx24j600: convert to kthread_run_workerdrivers/ | +8 | 0 replies | |
| 3/5 | tty: sc16is7xx: convert to kthread_run_workerdrivers/ | +18 | 0 replies | |
| 3/5 | tty: sc16is7xx: convert to kthread_run_workerdrivers/ | +18 | 0 replies | |
| 4/5 | cpufreq: schedutil: convert to kthread_create_workerkernel/ | +14 | 0 replies | |
| 4/5 | cpufreq: schedutil: convert to kthread_create_workerkernel/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RESEND PATCH 0/5] kthread: remove worker->task self-assignment
From: Bradley Morgan <[email protected]>
Resent as a proper series with cover letter. The first send went out as five separate threads instead of one.
kthread_worker_fn() has carried a FIXME for a decade: it assigns worker->task = current because the old kthread_run(kthread_worker_fn) callers never told the worker what task it was. The new kthread_create_worker*() API sets worker->task before the worker even starts, so the self-assignment is dead code.
Four drivers were still on the old API. Convert them, then remove the FIXME.
No functional change intended.
Bradley Morgan (5):
media: ivtv: convert to kthread_run_worker
net: encx24j600: convert to kthread_run_worker
tty: sc16is7xx: convert to kthread_run_worker
cpufreq: schedutil: convert to kthread_create_worker
kthread: remove worker->task self-assignment
drivers/media/pci/ivtv/ivtv-driver.c | 11 ++++------- drivers/media/pci/ivtv/ivtv-driver.h | 3 +-- drivers/net/ethernet/microchip/encx24j600.c | 12 ++++-------- drivers/tty/serial/sc16is7xx.c | 17 +++++++---------- kernel/sched/cpufreq_schedutil.c | 14 +++++-------- kernel/kthread.c | 7 ------- 6 files changed, 21 insertions(+), 63 deletions(-)