From 30c56d468c8af4eb97ed7e9966f3b2be828a3d09 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 6 Apr 1999 03:08:43 +0000 Subject: [PATCH] Hold the mfs process's upages in-core with PHOLD rather than P_NOSWAP. --- sys/ufs/mfs/mfs_vfsops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 9e194442cf7..6f1697bb72f 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mfs_vfsops.c 8.11 (Berkeley) 6/19/95 - * $Id: mfs_vfsops.c,v 1.57 1999/03/12 00:44:03 julian Exp $ + * $Id: mfs_vfsops.c,v 1.58 1999/04/05 06:39:10 peter Exp $ */ @@ -394,13 +394,13 @@ mfs_start(mp, flags, p) register int gotsig = 0; /* - * We must set P_NOSWAP to prevent the system from trying to swap + * We must prevent the system from trying to swap * out or kill ( when swap space is low, see vm/pageout.c ) the * process. A deadlock can occur if the process is swapped out, * and the system can loop trying to kill the unkillable ( while * references exist ) MFS process when swap space is low. */ - curproc->p_flag |= P_NOSWAP; + PHOLD(curproc); while (mfsp->mfs_active) { int s;