freebsd-nq/sys/cddl/contrib/opensolaris/uts
Andriy Gapon 74f75cb1bd zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls
We now take z_teardown_lock as a writer to ensure that there is no I/O
while the filesystem state is in a flux.  Also, zfs_suspend_fs() ->
zfsvfs_teardown() call zfs_unregister_callbacks() and zfs_resume_fs() ->
zfsvfs_setup() call zfs_unregister_callbacks().  Previously there was no
synchronization between those calls and the calls in the re-mounting
case.  That could lead to concurrent execution and a crash.

PR:		180060
Differential Revision:	https://reviews.freebsd.org/D2865
Suggested by:	mahrens
Reviewed by:	delphij, pho, mahrens, will
MFC after:	13 days
Sponsored by:	ClusterHQ
2015-07-02 08:32:02 +00:00
..
aarch64 First cut of DTrace for AArch64. 2015-07-01 15:51:11 +00:00
arm Initial version of DTrace on ARM32. 2015-02-10 19:41:30 +00:00
common zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls 2015-07-02 08:32:02 +00:00
intel Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00
mips Add MIPS support to cddl/contrib part: 2012-03-24 04:52:18 +00:00
powerpc Fix a couple bugs in 64-bit powerpc fasttrap argument retrieval. 2015-05-10 04:33:01 +00:00
sparc MFC r270195: 2014-08-20 21:44:48 +00:00