]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Synch with HEAD:
authorcsjp <csjp@FreeBSD.org>
Fri, 19 Aug 2005 04:50:08 +0000 (04:50 +0000)
committercsjp <csjp@FreeBSD.org>
Fri, 19 Aug 2005 04:50:08 +0000 (04:50 +0000)
commit20f8edeaa18ef45b8ca2f8986e7ac048ad865fc7
treeb4e0e905869897aeeb80bab8468a36c08cd8ccec
parenta0c5d836f0b5a4546572ae6fef623a0af5512dd5
Synch with HEAD:

MFC revision 1.167
date: 2005/08/08 21:06:42;  author: csjp;  state: Exp;  lines: +2 -0
Drop in a WITNESS_WARN into SYSCTL_IN to make sure that we are
not holding any non-sleep-able-locks locks when copyin is called.
This gets executed un-conditionally since we have no function
to wire the buffer in this direction.

MFC revision 1.166
date: 2005/08/08 18:54:35;  author: csjp;  state: Exp;  lines: +6 -1
Check to see if we wired the user-supplied buffers in SYSCTL_OUT, if
the buffer has not been wired and we are holding any non-sleep-able locks,
drop a witness warning. If the buffer has not been wired, it is possible
that the writing of the data can sleep, especially if the page is not in
memory. This can result in a number of different locking issues, including
dead locks.

Approved by: re (kensmith)
sys/kern/kern_sysctl.c