stable/7: shutdown stuck in zfs_umount (z_op_cnt > 0)

Andriy Gapon avg at icyb.net.ua
Sat May 16 06:57:15 UTC 2009


on 15/05/2009 23:11 Kip Macy said the following:
> On Fri, May 15, 2009 at 5:39 AM, Andriy Gapon <avg at icyb.net.ua> wrote:
>> on 15/05/2009 15:21 Andriy Gapon said the following:
>>> Red herring or not (I don't see the general picture of zfs code), but it seems
>>> that there is no ZFS_EXIT for return at the end of zfsctl_snapdir_lookup function.
>>>
>>> P.S. C++ RAII could have been handy in this case [or not] :-)
>> Couple of notes:
>> 1. this doesn't appear to be a red herring as ZFS_EXIT before the last return
>> statement can be found in head
>> 2. yes, I do mount snapshots from time to time (backups, etc)
>>
> 
> 
> Thanks for the bug reports. Unfortunately, pjd is very busy and I do
> not intend to track down bugs in a very old version of ZFS. Your best
> bet will be to test the MFC patch when it is ready in a day or two.

Actually I already fixed this for meself with the below patch :-)
Nevertheless, MFC news are great! Thank you for the work, you can count
on me as a tester.

diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
index cb789c0..7e06ed2 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
@@ -745,6 +745,7 @@ domount:
 		VN_RELE(*vpp);
 		*vpp = NULL;
 	}
+	ZFS_EXIT(zfsvfs);
 	return (err);
 }



-- 
Andriy Gapon


More information about the freebsd-fs mailing list