kernel - Fix vn_syncer_add panic with UFS
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 5 Nov 2013 22:46:00 +0000 (14:46 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 5 Nov 2013 22:50:10 +0000 (14:50 -0800)
commit00b0e039656a19ae9b6e013c90d49904f322301e
tree711eff64b140ac161ceffe4b59aab54e3e3bd788
parenteb23b349efec3ff27392241a436117b81342fa82
kernel - Fix vn_syncer_add panic with UFS

* The new VONWORKLST requirements were expanded to include VOBJDIRTY
  for both the standard syncer and the new syncer.  There was a path
  in the VM system which could clear VOBJDIRTY but failed to resynchronize
  VONWORKLST which could cause UFS to accidently leave a vnode on the
  syncer list after reclamation, causing a crash.

* Fix the VM path.

Reported-by: David Shao
sys/kern/vfs_subr.c
sys/vm/vm_object.c