OSDN Git Service

ide: remove the PCI_DMA_BUS_IS_PHYS check
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Apr 2018 18:29:44 +0000 (20:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 May 2018 05:15:41 +0000 (07:15 +0200)
We now have ways to deal with drainage in the block layer, and libata has
been using it for ages.  We also want to get rid of PCI_DMA_BUS_IS_PHYS
now, so just reduce the PCI transfer size for ide - anyone who cares for
performance on PCI controllers should have switched to libata long ago.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
drivers/ide/ide-probe.c

index 8d8ed03..56d7bc2 100644 (file)
@@ -796,8 +796,7 @@ static int ide_init_queue(ide_drive_t *drive)
         * This will be fixed once we teach pci_map_sg() about our boundary
         * requirements, hopefully soon. *FIXME*
         */
-       if (!PCI_DMA_BUS_IS_PHYS)
-               max_sg_entries >>= 1;
+       max_sg_entries >>= 1;
 #endif /* CONFIG_PCI */
 
        blk_queue_max_segments(q, max_sg_entries);