Page MenuHomeFreeBSD

linuxkpi: Add `kthread_run_worker()`
ClosedPublic

Authored by dumbbell on Jun 20 2026, 12:03 PM.
Referenced Files
Unknown Object (File)
Wed, Oct 7, 1:23 AM
Unknown Object (File)
Wed, Oct 7, 1:22 AM
Unknown Object (File)
Tue, Oct 6, 9:25 PM
Unknown Object (File)
Tue, Oct 6, 11:45 AM
Unknown Object (File)
Sun, Oct 4, 9:51 PM
Unknown Object (File)
Sun, Oct 4, 3:39 AM
Unknown Object (File)
Sun, Oct 4, 12:35 AM
Unknown Object (File)
Sat, Oct 3, 8:06 PM
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.Sep 5 2026, 9:52 PM
This revision was automatically updated to reflect the committed changes.