hammer2 - Fix flush issues with unmounted PFSs and shutdown panic
commit28efb08b59554982eb3821fe0667704282992817
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Sep 2017 00:35:56 +0000 (21 17:35 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Sep 2017 00:40:11 +0000 (21 17:40 -0700)
treeb99bac6c7c497fc43e37656bcc7c9256dbfbb0f9
parent04f439f340c7e435347917b05a4d3fd1c636b1ff
hammer2 - Fix flush issues with unmounted PFSs and shutdown panic

* Fix flush and shutdown issues when unmounted PFS's are present.
  These PFSs do not get flushed by the filesystem sync code because
  they haven't been mounted, but may still contain modified or
  referenced chains, as well as sideq'd inodes.

* Fix some other cleanup issues when unmounting.  Clean out vchain.pmp
  and fchain.pmp for the spmp during the unmount scan, which fixes a
  hammer2 pfs_memory_*() panic.

Reported-by: yellowrabbit2010
sys/vfs/hammer2/hammer2_vfsops.c