diff options
author | peter <peter@FreeBSD.org> | 1999-04-06 03:06:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-06 03:06:51 +0000 |
commit | 6b2387578a687e849d23571bb83e49264a850dd9 (patch) | |
tree | e51ca490b35483400aac5c21c4880dbd75908712 /sys/i386 | |
parent | 30a2f6d6a7e178986e2cafd8fb2bf5a84a4c98b0 (diff) | |
download | FreeBSD-src-6b2387578a687e849d23571bb83e49264a850dd9.zip FreeBSD-src-6b2387578a687e849d23571bb83e49264a850dd9.tar.gz |
Use reference counted PHOLD/PRELE rather than the P_PHYSIO flag.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c index d0dd782..07223f1 100644 --- a/sys/i386/isa/fd.c +++ b/sys/i386/isa/fd.c @@ -47,7 +47,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.132 1999/01/19 00:21:36 peter Exp $ + * $Id: fd.c,v 1.133 1999/02/10 00:03:32 ken Exp $ * */ @@ -2114,7 +2114,7 @@ fdformat(dev, finfo, p) /* * keep the process from being swapped */ - p->p_flag |= P_PHYSIO; + PHOLD(p); bzero((void *)bp, sizeof(struct buf)); bp->b_flags = B_BUSY | B_PHYS | B_FORMAT; bp->b_proc = p; @@ -2153,7 +2153,7 @@ fdformat(dev, finfo, p) /* * allow the process to be swapped */ - p->p_flag &= ~P_PHYSIO; + PRELE(p); free(bp, M_TEMP); return rv; } |