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:46:00 +0000 (14:46 -0800)
commit518cbb49745841d703ea07e413dcfe9b7cb0ce96
tree4cc77644e288e44b0fcd599fe0c42919f5d83bb8
parent5326d86a6fada14ce47692f036080ca69156158a
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