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

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

Diff for /src/sys/dev/raidframe/rf_netbsdkintf.c between version 1.6 and 1.7

version 1.6, 1999/01/14 22:49:05 version 1.7, 1999/01/15 17:55:52
Line 1479  int rf_DoAccessKernel(raidPtr, bp, flags
Line 1479  int rf_DoAccessKernel(raidPtr, bp, flags
         daddr_t blocknum;          daddr_t blocknum;
         int unit;          int unit;
         struct raid_softc *rs;          struct raid_softc *rs;
           int do_async;
   
         /* XXX The dev_t used here should be for /dev/[r]raid* !!! */          /* XXX The dev_t used here should be for /dev/[r]raid* !!! */
   
Line 1540  int rf_DoAccessKernel(raidPtr, bp, flags
Line 1541  int rf_DoAccessKernel(raidPtr, bp, flags
         }          }
         db1_printf(("Calling DoAccess..\n"));          db1_printf(("Calling DoAccess..\n"));
   
           /*
            * XXX For now, all writes are sync
            */
           do_async = 1;
           if ((bp->b_flags & B_READ) == 0)
                   do_async = 0;
   
         /* don't ever condition on bp->b_flags & B_WRITE.          /* don't ever condition on bp->b_flags & B_WRITE.
            always condition on B_READ instead */             always condition on B_READ instead */
         retcode = rf_DoAccess(raidPtr, (bp->b_flags & B_READ) ?          retcode = rf_DoAccess(raidPtr, (bp->b_flags & B_READ) ?
                               RF_IO_TYPE_READ : RF_IO_TYPE_WRITE,                                RF_IO_TYPE_READ : RF_IO_TYPE_WRITE,
                               0, raid_addr, num_blocks, bp->b_un.b_addr,                                do_async, raid_addr, num_blocks,
                                 bp->b_un.b_addr,
                               bp, NULL, NULL, RF_DAG_NONBLOCKING_IO|flags,                                bp, NULL, NULL, RF_DAG_NONBLOCKING_IO|flags,
                               NULL, cbFunc, cbArg);                                NULL, cbFunc, cbArg);
 #if 0  #if 0
         db1_printf(("After call to DoAccess: 0x%x 0x%x %d\n",bp,          db1_printf(("After call to DoAccess: 0x%x 0x%x %d\n",bp,
                bp->b_data,(int)bp->b_resid));                 bp->b_data,(int)bp->b_resid));
 #endif  #endif
   
           /*
            * If we requested sync I/O, sleep here.
            */
           if ((retcode == 0) && (do_async == 0))
                   tsleep(bp, PRIBIO, "raidsyncio", 0);
   
         return(retcode);          return(retcode);
 }  }
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVSweb <webmaster@jp.NetBSD.org>