Page MenuHomeFreeBSD

LinuxKPI: Switch irq_work implementation back to standard taskqueue
ClosedPublic

Authored by wulf on Apr 24 2022, 11:42 PM.

Details

Summary

from fast one as dmabuf does not run callbacks from critical sections
since drm-kmod 5.7.
Consumers which requires fair irq_work like drm-kmod 5.4 must #define
LKPI_IRQ_WORK_USE_FAST_TQ somewhere in source file before linux/irq_work.h
inclusion to enable old behavior.

While here include linux/llist.h to get struct llist_node definition
and add TQFLG_FAILIF_PENDING flag to taskqueue_enqueue to match Linux.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

wulf requested review of this revision.Apr 24 2022, 11:42 PM

Chase for taskqueue_enqueue flag name change

TQFLG_FAILIF_PENDING -> TASKQUEUE_FAIL_IF_PENDING