Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162580764
D2865.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
989 B
Referenced Files
None
Subscribers
None
D2865.diff
View Options
Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
===================================================================
--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
@@ -1717,9 +1717,19 @@
* 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;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 15, 6:21 PM (42 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35109652
Default Alt Text
D2865.diff (989 B)
Attached To
Mode
D2865: zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks calls
Attached
Detach File
Event Timeline
Log In to Comment