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

Joerg Sonnenberger joerg at
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 
  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
  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

More information about the Commits mailing list