sync with sparc version:

minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
This commit is contained in:
chuck 1996-02-21 03:40:39 +00:00
parent adeed1d823
commit f63dd5fef2
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: xy.c,v 1.4 1996/02/16 20:36:11 gwr Exp $ */
/* $NetBSD: xy.c,v 1.5 1996/02/21 03:40:39 chuck Exp $ */
/*
*
@ -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.4 1996/02/16 20:36:11 gwr Exp $
* id: $Id: xy.c,v 1.5 1996/02/21 03:40:39 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);
}
@ -1799,11 +1799,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);