the bitrig master branch has been updated by pedro with 2 new commits: commit 706b2e9dd5caaa7886d33d9db2276cc642459f0f diff: https://github.com/bitrig/bitrig/commit/706b2e9 author: Pedro Martelletto <[email protected]> date: Wed Mar 18 11:04:22 2015 +0100
Call wapbl_flush() with waitfor = 1 from the syncer, so the journal is flushed periodically. Looked at by dhill@ and natano@. Tested by jy-p@. No objections. M sys/ufs/ffs/ffs_vfsops.c commit eb68815a4f0e3bbb62acd7a2f60abd63003d2bbf diff: https://github.com/bitrig/bitrig/commit/eb68815 author: Pedro Martelletto <[email protected]> date: Wed Mar 18 11:02:19 2015 +0100 Don't sleep in wapbl_flush() if we are not supposed to. wapbl_flush() called with waitfor = 0 is expected to perform an opportunistic, best-effort flush of the journal; it is not meant to sleep for locks. Please note that wapbl_flush() should only be called with waitfor = 1 from places where we know no vnode locks are being held, otherwise deadlocks might occur. Looked at by dhill@ and natano@. Tested by jy-p@. No objections. M sys/kern/vfs_wapbl.c
