summaryrefslogtreecommitdiff
path: root/sys/isofs/udf/udf_vfsops.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2006-08-06 18:42:02 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2006-08-06 18:42:02 +0000
commit86b0e9841c734d03c0061a08c6defcd360133f65 (patch)
tree0934a3c5c967aacd5db1309cd537b488566addec /sys/isofs/udf/udf_vfsops.c
parentaea23d2253246c3537bcfc024f98ae378b87f0e7 (diff)
obey the locking disaplince wrt to VOP_CLOSE during umounts
and mount error paths. ok sturm@ pedro@
Diffstat (limited to 'sys/isofs/udf/udf_vfsops.c')
-rw-r--r--sys/isofs/udf/udf_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index d30612c67db..75777c404b7 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.21 2006/07/11 22:02:08 pedro Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.22 2006/08/06 18:42:01 thib Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -401,7 +401,10 @@ bail:
}
if (bp != NULL)
brelse(bp);
+
+ vn_lock(devvp, LK_EXCLUSIVE|LK_RETRY, p);
VOP_CLOSE(devvp, FREAD, FSCRED, p);
+ VOP_UNLOCK(devvp, 0, p);
return (error);
}