FreeBSD Bugzilla – Attachment 157799 Details for
Bug 180060
[zfs] [panic] ZFS kernel panic, solaris assert on dsl_prop_unregister
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch for testing
file_180060.txt (text/plain), 1.05 KB, created by
Andriy Gapon
on 2015-06-16 11:25:11 UTC
(
hide
)
Description:
proposed patch for testing
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2015-06-16 11:25:11 UTC
Size:
1.05 KB
patch
obsolete
>diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c >index d54dc4a..4109d87 100644 >--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c >+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c >@@ -1714,9 +1714,19 @@ zfs_mount(vfs_t *vfsp) > * according to those options set in the current VFS options. > */ > if (vfsp->vfs_flag & MS_REMOUNT) { >- /* refresh mount options */ >- zfs_unregister_callbacks(vfsp->vfs_data); >+ zfsvfs_t *zfsvfs = vfsp->vfs_data; >+ >+ /* >+ * Refresh mount options with z_teardown_lock blocking I/O while >+ * the filesystem is in an inconsistent state. >+ * The lock also serializes this code with filesystem >+ * manipulations between entry to zfs_suspend_fs() and return >+ * from zfs_resume_fs(). >+ */ >+ rrm_enter(&zfsvfs->z_teardown_lock, RW_WRITER, FTAG); >+ zfs_unregister_callbacks(zfsvfs); > error = zfs_register_callbacks(vfsp); >+ rrm_exit(&zfsvfs->z_teardown_lock, FTAG); > goto out; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 180060
:
157329
| 157799