Patch series "kthread: Kthread worker API improvements" The intention of this patchset is to make it easier to manipulate and maintain kthreads. Especially, I want to replace all the custom main cycles with a generic one. Also I want to make the kthreads sleep in a consistent state in a common place when there is no work. This patch (of 11): A good practice is to prefix the names of functions by the name of the subsystem. This patch fixes the name of probe_kthread_data(). The other wrong functions names are part of the kthread worker API and will be fixed separately.
Showing the changes to kernel/workqueue.c (1 of 3 files). Show all
Unified · Split
| @@ -4261,7 +4261,7 @@ void print_worker_info(const char *log_lvl, struct task_struct *task) · 4260 unmodified lines | ||
| 4261 | 4261 | * This function is called without any synchronization and @task |
| 4262 | 4262 | * could be in any state. Be careful with dereferences. |
| 4263 | 4263 | */ |
| 4264 | − worker = probe_kthread_data(task); | |
| 4264 | + worker = kthread_probe_data(task); | |
| 4265 | 4265 | |
| 4266 | 4266 | /* |
| 4267 | 4267 | * Carefully copy the associated workqueue's workfn and name. Keep |