cvs commit: src/sys/dev/disk/ata ata-dma.c

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Tue Mar 9 13:38:29 PST 2004


joerg       2004/03/09 13:38:05 PST

DragonFly src repository

  Modified files:
    sys/dev/disk/ata     ata-dma.c 
  Log:
  While converting ATA to use MPIPE allocations, ata_dmaalloc was changed
  to allocate the DMA buffer directly without checking if it already is.
  Since atapi_queue_cmd and ad_start doesn't check this and the DMA buffer
  is only freed from ad_free, ad_detach and atapi_detach, the MPIPE was
  exhausted very soon. The calls the ata_dmafree has been removed in revision
  1.9.
  
  This adds an additional check wether a DMA buffer is already allocated and
  reuses that instead.
  
  Revision  Changes    Path
  1.19      +10 -1     src/sys/dev/disk/ata/ata-dma.c


http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/ata/ata-dma.c.diff?r1=1.18&r2=1.19&f=h





More information about the Commits mailing list