]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r224814, r224855:
authormm <mm@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Aug 2011 07:43:10 +0000 (07:43 +0000)
committermm <mm@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Aug 2011 07:43:10 +0000 (07:43 +0000)
commit020902cad70fe75e3982b36498b375107ac84025
treeec8d704ba11fd3c61f3ce8b95940c037a8cc8d1d
parentcb4a228e0745bf0f8680ce56595a2b663373abfc
MFC r224814, r224855:

MFC r224814 [1]:
Fix race between dmu_objset_prefetch() invoked from
zfs_ioc_dataset_list_next() and dsl_dir_destroy_check() indirectly
invoked from dmu_recv_existing_end() via dsl_dataset_destroy() by not
prefetching temporary clones, as these count as always inconsistent.
In addition, do not prefetch hidden datasets at all as we are not
going to process these later.

Filed as Illumos Bug #1346

MFC r224855:
zfs_ioctl.c: improve code readability in zfs_ioc_dataset_list_next()

zvol.c: fix calling of dmu_objset_prefetch() in zvol_create_minors()
by passing full instead of relative dataset name and prefetching all
visible datasets to be processed later instead of just the pool name

PR: kern/157728 [1]
Tested by: Borja Marcos <borjam@sarenet.es> [1], mm
Reviewed by: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/8@225022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c