summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2005-08-23 03:44:06 +0000
committertruckman <truckman@FreeBSD.org>2005-08-23 03:44:06 +0000
commitaa31faa377ed01e569a534e5afd8b5ea3264a292 (patch)
treed9a42681dab4ebc860b15043e63b67155a6729d4 /Makefile.inc1
parentd3eff5cec10db8091edaf6687bd5780bd6a65ef3 (diff)
downloadFreeBSD-src-aa31faa377ed01e569a534e5afd8b5ea3264a292.zip
FreeBSD-src-aa31faa377ed01e569a534e5afd8b5ea3264a292.tar.gz
Back out the removal of LK_NOWAIT from the VOP_LOCK() call in
vlrureclaim() in vfs_subr.c 1.636 because waiting for the vnode lock aggravates an existing race condition. It is also undesirable according to the commit log for 1.631. Fix the tiny race condition that remains by rechecking the vnode state after grabbing the vnode lock and grabbing the vnode interlock. Fix the problem of other threads being starved (which 1.636 attempted to fix by removing LK_NOWAIT) by calling uio_yield() periodically in vlrureclaim(). This should be more deterministic than hoping that VOP_LOCK() without LK_NOWAIT will block, which may not happen in this loop. Reviewed by: kan MFC after: 5 days
Diffstat (limited to 'Makefile.inc1')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud