Turn ISP_LOCK/ISP_UNLOCK into ISP_ILOCK/ISP_IUNLOCK macros for routines

that are driven from a timeout (oops, they're on the interrupt stack).
This commit is contained in:
mjacob 2000-12-28 21:37:04 +00:00
parent 8b9fb822b0
commit 0dae1b3d9a
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isp_netbsd.c,v 1.35 2000/12/28 08:11:52 mjacob Exp $ */
/* $NetBSD: isp_netbsd.c,v 1.36 2000/12/28 21:37:04 mjacob Exp $ */
/*
* This driver, which is contained in NetBSD in the files:
*
@ -542,7 +542,7 @@ isp_command_requeue(arg)
{
struct scsipi_xfer *xs = arg;
struct ispsoftc *isp = XS_ISP(xs);
ISP_LOCK(isp);
ISP_ILOCK(isp);
switch (ispcmd(xs)) {
case SUCCESSFULLY_QUEUED:
isp_prt(isp, ISP_LOGINFO,
@ -566,7 +566,7 @@ isp_command_requeue(arg)
scsipi_done(xs);
break;
}
ISP_UNLOCK(isp);
ISP_IUNLOCK(isp);
}
/*
@ -580,7 +580,7 @@ isp_internal_restart(arg)
struct ispsoftc *isp = arg;
int result, nrestarted = 0;
ISP_LOCK(isp);
ISP_ILOCK(isp);
if (isp->isp_osinfo.blocked == 0) {
struct scsipi_xfer *xs;
while ((xs = TAILQ_FIRST(&isp->isp_osinfo.waitq)) != NULL) {
@ -603,7 +603,7 @@ isp_internal_restart(arg)
isp_prt(isp, ISP_LOGINFO,
"isp_restart requeued %d commands", nrestarted);
}
ISP_UNLOCK(isp);
ISP_IUNLOCK(isp);
}
int