CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2019/04/27 22:20:40
Modified files: share/man/man9 : task_add.9 sys/sys : task.h sys/kern : kern_task.c Log message: add WITNESS support to barriers modelled on the timeout stuff visa did. if a taskq takes a lock, and something holding that lock calls taskq_barrier, there's a potential deadlock. detect this as a lock order problem when witness is enable. task_del conditionally followed by taskq_barrier is a common pattern, so add a taskq_del_barrier wrapper for it that unconditionally checks for the deadlock, like timeout_del_barrier. ok visa@