svn commit: r248976 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Martin Matuska
mm at FreeBSD.org
Mon Apr 1 16:14:57 UTC 2013
Author: mm
Date: Mon Apr 1 16:14:57 2013
New Revision: 248976
URL: http://svnweb.freebsd.org/changeset/base/248976
Log:
Call dmu_snapshot_list_next() in zvol.c with dsl_pool_config lock held
Submitted by: Andriy Gapon <avg at FreeBSD.org>
MFC after: 17 days
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Mon Apr 1 13:48:30 2013 (r248975)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Mon Apr 1 16:14:57 2013 (r248976)
@@ -2197,8 +2197,10 @@ zvol_create_snapshots(objset_t *os, cons
break;
}
+ dsl_pool_config_enter(dmu_objset_pool(os), FTAG);
error = dmu_snapshot_list_next(os, MAXPATHLEN - len,
sname + len, &obj, &cookie, NULL);
+ dsl_pool_config_exit(dmu_objset_pool(os), FTAG);
if (error != 0) {
if (error == ENOENT)
error = 0;
More information about the svn-src-head
mailing list