libata: implement drain buffers
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 19 Feb 2008 10:36:57 +0000 (11:36 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 10:36:57 +0000 (11:36 +0100)
commitfa2fc7f4813bfec1ae3232d49e3befbd601e8a6f
treef5598bd35f38812318da493cc027238a2256e036
parentdde2020754aeb14e17052d61784dcb37f252aac2
libata: implement drain buffers

This just updates the libata slave configure routine to take advantage
of the block layer drain buffers.  It also adjusts the size lengths in
the atapi code to add the drain buffer to the DMA length so the driver
knows it can rely on it.

I suspect I should also be checking for AHCI as well as ATA_DEV_ATAPI,
but I couldn't see how to do that easily.

tj: * atapi_drain_needed() added such that draining is applied to only
      misc ATAPI commands.
    * q->bounce_gfp used when allocating drain buffer.
    * Now duplicate ATAPI PIO drain logic dropped.
    * ata_dev_printk() used instead of sdev_printk().

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
This page took 0.031212 seconds and 5 git commands to generate.