summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1996-02-21 03:44:02 +0000
committerchuck <chuck@cvs.openbsd.org>1996-02-21 03:44:02 +0000
commit4fff4e81d4454a1f58b8201761a07b1d0fc29d3b (patch)
treebeaf0f5a7ae0274606153fb5d3c7491ba8e9ca1e /sys/arch
parentc6a02f162ac4eea2288bbf54c08311fab1e7fb5e (diff)
sync with sparc:
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sun3/dev/xy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sun3/dev/xy.c b/sys/arch/sun3/dev/xy.c
index b369e2bca85..b08bdfcda73 100644
--- a/sys/arch/sun3/dev/xy.c
+++ b/sys/arch/sun3/dev/xy.c
@@ -36,7 +36,7 @@
* x y . c x y l o g i c s 4 5 0 / 4 5 1 s m d d r i v e r
*
* author: Chuck Cranor <chuck@ccrc.wustl.edu>
- * id: $Id: xy.c,v 1.3 1996/01/13 03:52:45 chuck Exp $
+ * id: $Id: xy.c,v 1.4 1996/02/21 03:44:01 chuck Exp $
* started: 14-Sep-95
* references: [1] Xylogics Model 753 User's Manual
* part number: 166-753-001, Revision B, May 21, 1988.
@@ -1009,9 +1009,6 @@ xystrategy(bp)
xyc_start(xy->parent, NULL);
- /* Instrumentation. */
- disk_busy(&xy->sc_dk);
-
/* done! */
splx(s);
@@ -1284,6 +1281,9 @@ xyc_startbuf(xycsc, xysc, bp)
xyc_rqtopb(iorq, iopb, (bp->b_flags & B_READ) ? XYCMD_RD : XYCMD_WR, 0);
+ /* Instrumentation. */
+ disk_busy(&xysc->sc_dk);
+
return (XY_ERR_AOK);
}
@@ -1798,11 +1798,11 @@ xyc_remove_iorq(xycsc)
/* Sun3: map/unmap regardless of B_PHYS */
dvma_mapout(iorq->dbufbase,
iorq->buf->b_bcount);
- iorq->mode = XY_SUB_FREE;
iorq->xy->xyq.b_actf = bp->b_actf;
disk_unbusy(&iorq->xy->sc_dk,
(bp->b_bcount - bp->b_resid));
biodone(bp);
+ iorq->mode = XY_SUB_FREE;
break;
case XY_SUB_WAIT:
iorq->mode = XY_NEWSTATE(iorq->mode, XY_SUB_DONE);