diff options
author | peter <peter@FreeBSD.org> | 1999-04-06 03:05:36 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-06 03:05:36 +0000 |
commit | 30a2f6d6a7e178986e2cafd8fb2bf5a84a4c98b0 (patch) | |
tree | ecc87e55e00ce37504c1a4e3078e5d5fd886c2ab /sys/cam/cam_periph.c | |
parent | 399ad295b1b01c91382db700938b3501b56980ce (diff) | |
download | FreeBSD-src-30a2f6d6a7e178986e2cafd8fb2bf5a84a4c98b0.zip FreeBSD-src-30a2f6d6a7e178986e2cafd8fb2bf5a84a4c98b0.tar.gz |
Use PHOLD/PRELE rather than P_PHYSIO.
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r-- | sys/cam/cam_periph.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <sys/param.h> @@ -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 * |