Page MenuHomeFreeBSD

linuxkpi: Add `kthread_run_worker()`
Needs ReviewPublic

Authored by dumbbell on Jun 20 2026, 12:03 PM.
Referenced Files
F168352157: D57701.id.diff
Thu, Aug 27, 6:06 PM
Unknown Object (File)
Tue, Aug 25, 9:17 PM
Unknown Object (File)
Sat, Aug 15, 5:45 AM
Unknown Object (File)
Thu, Aug 13, 12:25 AM
Unknown Object (File)
Wed, Aug 12, 11:43 PM
Unknown Object (File)
Wed, Aug 12, 5:28 PM
Unknown Object (File)
Mon, Aug 10, 6:59 AM
Unknown Object (File)
Sun, Aug 9, 7:45 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

On Linux, kthread_run_worker() differs from kthread_create_worker() by waking up the task after creating it with kthread_create_worker().

On FreeBSD, we already execute it and wait for it, so probably no need to do anything further. Therefore, kthread_run_worker() is an alias to kthread_create_worker().

The DRM drivers generic code started to replace kthread_create_worker() by kthread_run_worker() as is in Linux 6.14.

This is part of the update of DRM drivers to Linux 6.14.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/compat/linuxkpi/common/include/linux/kthread.h
113

we ought to have a comment here explaining why -- basically the text from the proposed commit message