From 30a2f6d6a7e178986e2cafd8fb2bf5a84a4c98b0 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 6 Apr 1999 03:05:36 +0000 Subject: Use PHOLD/PRELE rather than P_PHYSIO. --- sys/cam/cam_periph.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/cam/cam_periph.c') diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index e4be47f..4ba2630 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_periph.c,v 1.9 1999/01/14 06:21:54 jdp Exp $ + * $Id: cam_periph.c,v 1.10 1999/01/21 08:29:02 dillon Exp $ */ #include @@ -593,7 +593,7 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) /* * XXX KDM should I use P_NOSWAP instead? */ - curproc->p_flag |= P_PHYSIO; + PHOLD(curproc); for (i = 0; i < numbufs; i++) { /* @@ -637,7 +637,7 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) if (mapinfo->num_bufs_used <= 0) { /* allow ourselves to be swapped once again */ - curproc->p_flag &= ~P_PHYSIO; + PRELE(curproc); return; } @@ -658,7 +658,7 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) break; default: /* allow ourselves to be swapped once again */ - curproc->p_flag &= ~P_PHYSIO; + PRELE(curproc); return; break; /* NOTREACHED */ } @@ -678,7 +678,7 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) } /* allow ourselves to be swapped once again */ - curproc->p_flag &= ~P_PHYSIO; + PRELE(curproc); } union ccb * -- cgit v1.1