From 1709925a610ae27ace4f90e98631983867b26ea6 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 11 May 2003 03:30:26 +0000 Subject: revert part of previous. if mfs gets a signal, it doesn't attempt to force the unmount, so there's no need to mess with resetting processes' working dirs. --- sys/ufs/mfs/mfs_vfsops.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index f02d061e52d..046559eda40 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vfsops.c,v 1.23 2003/05/06 20:52:14 tedu Exp $ */ +/* $OpenBSD: mfs_vfsops.c,v 1.24 2003/05/11 03:30:25 tedu Exp $ */ /* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */ /* @@ -259,7 +259,6 @@ mfs_start(mp, flags, p) struct proc *p; { struct vnode *vp = VFSTOUFS(mp)->um_devvp; - struct vnode *rvp; struct mfsnode *mfsp = VTOMFS(vp); struct buf *bp; caddr_t base; @@ -279,12 +278,8 @@ mfs_start(mp, flags, p) * EINTR/ERESTART. */ if (sleepreturn != 0) { - if (ufs_root(mp, &rvp)) - rvp = NULL; - else - vput(rvp); if (vfs_busy(mp, LK_EXCLUSIVE|LK_NOWAIT, NULL, p) || - dounmount(mp, 0, p, rvp)) + dounmount(mp, 0, p, NULL)) CLRSIG(p, CURSIG(p)); sleepreturn = 0; continue; -- cgit v1.2.3