]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Protect reclaim with z_teardown_inactive_lock.
authorPawel Jakub Dawidek <pjd@FreeBSD.org>
Sat, 12 Sep 2009 19:53:31 +0000 (19:53 +0000)
committerPawel Jakub Dawidek <pjd@FreeBSD.org>
Sat, 12 Sep 2009 19:53:31 +0000 (19:53 +0000)
commitf5516e3d1d2e9d306080f1045d355459b23a67b9
treee7527ae5b2a6a1f12c2295998a5dcf76071d0d60
parent1fc39d54242a0e044e26b79855e8bab827e8baee
- Protect reclaim with z_teardown_inactive_lock.
- Be prepared for dbuf to disappear in zfs_reclaim_complete() and check if
  z_dbuf field is NULL - this might happen in case of rollback or forced
  unmount between zfs_freebsd_reclaim() and zfs_reclaim_complete().
- On forced unmount wait for all znodes to be destroyed - destruction can be
  done asynchronously via zfs_reclaim_complete().

MFC after: 1 week
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c