[BACK]Return to mscp_disk.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / mscp

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/mscp/mscp_disk.c between version 1.30 and 1.30.10.1

version 1.30, 2001/11/13 07:38:28 version 1.30.10.1, 2002/11/10 15:44:02
Line 287  rastrategy(bp)
Line 287  rastrategy(bp)
 {  {
         int unit;          int unit;
         struct ra_softc *ra;          struct ra_softc *ra;
           int b;
   
         /*          /*
          * Make sure this is a reasonable drive to use.           * Make sure this is a reasonable drive to use.
          */           */
Line 300  rastrategy(bp)
Line 302  rastrategy(bp)
          * If drive is open `raw' or reading label, let it at it.           * If drive is open `raw' or reading label, let it at it.
          */           */
         if (ra->ra_state == DK_RDLABEL) {          if (ra->ra_state == DK_RDLABEL) {
                   /* Make some statistics... /bqt */
                   b = splbio();
                   disk_busy(&ra->ra_disk);
                   splx(b);
                 mscp_strategy(bp, ra->ra_dev.dv_parent);                  mscp_strategy(bp, ra->ra_dev.dv_parent);
                 return;                  return;
         }          }
Line 321  rastrategy(bp)
Line 327  rastrategy(bp)
                 goto done;                  goto done;
   
         /* Make some statistics... /bqt */          /* Make some statistics... /bqt */
         ra->ra_disk.dk_xfer++;          b = splbio();
         ra->ra_disk.dk_bytes += bp->b_bcount;          disk_busy(&ra->ra_disk);
           splx(b);
         mscp_strategy(bp, ra->ra_dev.dv_parent);          mscp_strategy(bp, ra->ra_dev.dv_parent);
         return;          return;
   
Line 671  rxstrategy(bp)
Line 678  rxstrategy(bp)
 {  {
         int unit;          int unit;
         struct rx_softc *rx;          struct rx_softc *rx;
           int b;
   
         /*          /*
          * Make sure this is a reasonable drive to use.           * Make sure this is a reasonable drive to use.
Line 700  rxstrategy(bp)
Line 708  rxstrategy(bp)
         }          }
   
         /* Make some statistics... /bqt */          /* Make some statistics... /bqt */
         rx->ra_disk.dk_xfer++;          b = splbio();
         rx->ra_disk.dk_bytes += bp->b_bcount;          disk_busy(&rx->ra_disk);
           splx(b);
         mscp_strategy(bp, rx->ra_dev.dv_parent);          mscp_strategy(bp, rx->ra_dev.dv_parent);
         return;          return;
   
Line 841  rriodone(usc, bp)
Line 850  rriodone(usc, bp)
         struct device *usc;          struct device *usc;
         struct buf *bp;          struct buf *bp;
 {  {
           struct ra_softc *ra;
           int unit;
   
           /* We assume that this is a reasonable drive. ra_strategy should
              already have verified it. Thus, no checks here... /bqt */
           unit = DISKUNIT(bp->b_dev);
           ra = ra_cd.cd_devs[unit];
           disk_unbusy(&ra->ra_disk, bp->b_bcount);
   
         biodone(bp);          biodone(bp);
 }  }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.30.10.1

CVSweb <webmaster@jp.NetBSD.org>