cvs commit: src/sys/kern vfs_mount.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Jun 2 23:58:15 UTC 2006


On Fri, Jun 02, 2006 at 06:25:36PM -0400, Craig Rodrigues wrote:
+> On Fri, Jun 02, 2006 at 08:29:02PM +0000, Pawel Jakub Dawidek wrote:
+> > pjd         2006-06-02 20:29:02 UTC
+> > 
+> >   FreeBSD src repository
+> > 
+> >   Modified files:
+> >     sys/kern             vfs_mount.c 
+> >   Log:
+> >   Fix a problem introduced in revision 1.220. On mount(2) failure, don't
+> >   forget to unbusy file system before its destruction.
+> >   
+> >   This fixes the following warning on mount failure:
+> >   
+> >           Mount point <X> had 1 dangling refs
+> >   
+> >   Tested by:      wkoszek
+> >   
+> >   Revision  Changes    Path
+> >   1.226     +6 -5      src/sys/kern/vfs_mount.c
+> 
+> 
+> Does this problem fix the slight delay that you get when
+> doing a mount or update mount with a bad mount option?
+> 
+> For example:
+> 
+> mount -u -o nonexistentopt /mymount

Yes, vfs_mount_destroy() waits 3 seconds if there is a dangling
reference. Now there is no such reference when the function is called.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060602/0ab88ee8/attachment.pgp


More information about the cvs-src mailing list