aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_deflate.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-08-23 06:39:40 +0000
committerXin LI <delphij@FreeBSD.org>2019-08-23 06:39:40 +0000
commita11bf9a49bb2eb742095fc9bf268c6edb214a1fe (patch)
treeedd37f79aeec3179d05635034aa249cdc9c4d565 /sys/netgraph/ng_deflate.c
parent877b6cbba1cb2ed66df9671b392796cc01e62f12 (diff)
downloadsrc-a11bf9a49bb2eb742095fc9bf268c6edb214a1fe.tar.gz
src-a11bf9a49bb2eb742095fc9bf268c6edb214a1fe.zip
INVARIANTS: treat LA_LOCKED as the same of LA_XLOCKED in mtx_assert.
The Linux lockdep API assumes LA_LOCKED semantic in lockdep_assert_held(), meaning that either a shared lock or write lock is Ok. On the other hand, the timeout code uses lc_assert() with LA_XLOCKED, and we need both to work. For mutexes, because they can not be shared (this is unique among all lock classes, and it is unlikely that we would add new lock class anytime soon), it is easier to simply extend mtx_assert to handle LA_LOCKED there, despite the change itself can be viewed as a slight abstraction violation. Reviewed by: mjg, cem, jhb MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D21362
Notes
Notes: svn path=/head/; revision=351417
Diffstat (limited to 'sys/netgraph/ng_deflate.c')
0 files changed, 0 insertions, 0 deletions