diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-04-28 04:20:41 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-04-28 04:20:41 +0000 |
commit | a601981fe1a88ac47d21475c9cc8218d2ef719b6 (patch) | |
tree | 27e0c1b5ed1093798bc7b1ace35ba1ffe2320177 /games/mille | |
parent | 5e5d23632268287adbe04d2091681e99ff70b04c (diff) |
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@
Diffstat (limited to 'games/mille')
0 files changed, 0 insertions, 0 deletions