summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2004-07-04 16:07:44 +0000
committerbmilekic <bmilekic@FreeBSD.org>2004-07-04 16:07:44 +0000
commitdf84cdbe06ddfd60e172e2f3d7ee2f7541c16f67 (patch)
tree0728b0e905a3f5e4cdf62a186f6e67d1bf7d89c4 /sys/i4b
parent77ef401fc60964c4edacb0a34bd820a3d426491d (diff)
downloadFreeBSD-src-df84cdbe06ddfd60e172e2f3d7ee2f7541c16f67.zip
FreeBSD-src-df84cdbe06ddfd60e172e2f3d7ee2f7541c16f67.tar.gz
Introduce debug.nosleepwithlocks sysctl, 0 by default. If set to 1
and WITNESS is not built, then force all M_WAITOK allocations to M_NOWAIT behavior (transparently). This is to be used temporarily if wierd deadlocks are reported because we still have code paths that perform M_WAITOK allocations with lock(s) held, which can lead to deadlock. If WITNESS is compiled, then the sysctl is ignored and we ask witness to tell us wether we have locks held, converting to M_NOWAIT behavior only if it tells us that we do. Note this removes the previous mbuf.h inclusion as well (only needed by last revision), and cleans up unneeded [artificial] comparisons to just the mbuf zones. The problem described above has nothing to do with previous mbuf wait behavior; it is a general problem.
Diffstat (limited to 'sys/i4b')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud