summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/overflow.h
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-04-14 08:51:31 +0000
committervisa <visa@openbsd.org>2019-04-14 08:51:31 +0000
commit505701c75b30a46033a8e560b856c824537ba537 (patch)
tree88f85f33aca7ee5d53d68ec42fabc2c0e141c624 /sys/dev/pci/drm/include/linux/overflow.h
parentFix previous: I forgot to rename the bn_to_string() prototype. (diff)
downloadwireguard-openbsd-505701c75b30a46033a8e560b856c824537ba537.tar.xz
wireguard-openbsd-505701c75b30a46033a8e560b856c824537ba537.zip
Add lock order checking for timeouts
The caller of timeout_barrier() must not hold locks that could prevent timeout handlers from making progress. The system could deadlock otherwise. This patch makes witness(4) able to detect barrier locking errors. This is done by introducing a pseudo-lock that couples the lock chains of barrier callers to the lock chains of timeout handlers. In order to find these errors faster, this diff adds a synchronous version of cancelling timeouts, timeout_del_barrier(9). As the synchronous intent is explicit, this interface can check lock order immediately instead of waiting for the potentially rare occurrence of timeout_barrier(9). OK dlg@ mpi@
Diffstat (limited to 'sys/dev/pci/drm/include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions