diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-02-21 03:43:19 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-02-21 03:43:19 +0000 |
commit | c6a02f162ac4eea2288bbf54c08311fab1e7fb5e (patch) | |
tree | 76639dc27fd9b54aff74ecb2d96ccd1ac2091d07 /sys/arch/sparc/dev | |
parent | dd568e610922aa16f4daf5641ee0fa1d5f5b610e (diff) |
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/xy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index 952522699e2..35911f95bd8 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/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.5 1996/01/13 03:45:03 chuck Exp $ + * id: $Id: xy.c,v 1.6 1996/02/21 03:43:18 chuck Exp $ * started: 14-Sep-95 * references: [1] Xylogics Model 753 User's Manual * part number: 166-753-001, Revision B, May 21, 1988. @@ -1038,9 +1038,6 @@ xystrategy(bp) xyc_start(xy->parent, NULL); - /* Instrumentation. */ - disk_busy(&xy->sc_dk); - /* done! */ splx(s); @@ -1299,6 +1296,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); } @@ -1810,10 +1810,10 @@ xyc_remove_iorq(xycsc) dvma_mapout((vm_offset_t) iorq->dbufbase, (vm_offset_t) bp->b_un.b_addr, bp->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)); + iorq->mode = XY_SUB_FREE; biodone(bp); break; case XY_SUB_WAIT: |