Module Name:    src
Committed By:   pooka
Date:           Fri Nov 27 16:23:24 UTC 2009

Modified Files:
        src/sys/fs/hfs: hfs_subr.c

Log Message:
Yes, you need a VOP_UNLOCK() there.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/fs/hfs/hfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/hfs/hfs_subr.c
diff -u src/sys/fs/hfs/hfs_subr.c:1.12 src/sys/fs/hfs/hfs_subr.c:1.13
--- src/sys/fs/hfs/hfs_subr.c:1.12	Thu Mar 26 20:05:07 2009
+++ src/sys/fs/hfs/hfs_subr.c	Fri Nov 27 16:23:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hfs_subr.c,v 1.12 2009/03/26 20:05:07 pooka Exp $	*/
+/*	$NetBSD: hfs_subr.c,v 1.13 2009/11/27 16:23:23 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */                                     
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hfs_subr.c,v 1.12 2009/03/26 20:05:07 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hfs_subr.c,v 1.13 2009/11/27 16:23:23 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -230,7 +230,7 @@
 			vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY);
 			(void)VOP_CLOSE(devvp,
 			    in_vol->readonly ? FREAD : FREAD | FWRITE, NOCRED);
-			/* XXX do we need a VOP_UNLOCK() here? */
+			VOP_UNLOCK(devvp, 0);
 		}
 
 		free(in_vol->cbdata, M_HFSMNT);

Reply via email to