Page MenuHomeFreeBSD

linuxkpi: Add `kthread_run_worker()`
ClosedPublic

Authored by dumbbell on Jun 20 2026, 12:03 PM.
Referenced Files
F172837660: D57701.id185650.diff
Mon, Sep 21, 11:06 AM
F172785940: D57701.diff
Sun, Sep 20, 11:51 PM
F172764046: D57701.diff
Sun, Sep 20, 8:17 PM
Unknown Object (File)
Wed, Sep 16, 11:58 PM
Unknown Object (File)
Tue, Sep 15, 7:31 AM
Unknown Object (File)
Tue, Sep 15, 5:31 AM
Unknown Object (File)
Sat, Sep 12, 12:38 PM
Unknown Object (File)
Sat, Sep 12, 4:19 AM
Subscribers

Details

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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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

Add comment to explain kthread_run_worker(), as suggested by @emaste.

This revision is now accepted and ready to land.Sat, Sep 5, 9:52 PM
This revision was automatically updated to reflect the committed changes.