Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/adosfs pull up rev 1.37 from trunk (requested by wr...
details: https://anonhg.NetBSD.org/src/rev/1733719634c8
branches: netbsd-1-4
changeset: 469589:1733719634c8
user: cgd <cgd%NetBSD.org@localhost>
date: Mon Oct 18 05:04:41 1999 +0000
description:
pull up rev 1.37 from trunk (requested by wrstuden):
In spec_close(), call the device's close routine with the vnode
unlocked if the call might block. Force a non-blocking close if
VXLOCK is set. This eliminates a potential deadlock situation, and
should eliminate the dirty buffers on reboot issue.
diffstat:
sys/adosfs/advfsops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r cb512029661e -r 1733719634c8 sys/adosfs/advfsops.c
--- a/sys/adosfs/advfsops.c Mon Oct 18 00:06:33 1999 +0000
+++ b/sys/adosfs/advfsops.c Mon Oct 18 05:04:41 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: advfsops.c,v 1.35.2.1 1999/06/22 14:32:00 perry Exp $ */
+/* $NetBSD: advfsops.c,v 1.35.2.2 1999/10/18 05:04:41 cgd Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -299,8 +299,9 @@
return (error);
amp = VFSTOADOSFS(mp);
amp->devvp->v_specflags &= ~SI_MOUNTEDON;
+ vn_lock(amp->devvp, LK_EXCLUSIVE | LK_RETRY);
error = VOP_CLOSE(amp->devvp, FREAD, NOCRED, p);
- vrele(amp->devvp);
+ vput(amp->devvp);
if (amp->bitmap)
free(amp->bitmap, M_ADOSFSBITMAP);
free(amp, M_ADOSFSMNT);
Home |
Main Index |
Thread Index |
Old Index