diff options
author | Christoph Hellwig <hch@lst.de> | 2018-04-03 20:29:44 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-07 07:15:41 +0200 |
commit | 164c3d091292130c82306c97718b2d90534b8897 (patch) | |
tree | 758ab89677287b4f7b715ab8c32b0b3fea4fed9b /drivers/ide | |
parent | 1d3b9917df9725382f4e0005ecaddee114ebc847 (diff) | |
download | linux-164c3d091292130c82306c97718b2d90534b8897.tar.gz linux-164c3d091292130c82306c97718b2d90534b8897.tar.bz2 linux-164c3d091292130c82306c97718b2d90534b8897.zip |
ide: remove the PCI_DMA_BUS_IS_PHYS check
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>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-probe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 8d8ed036ca0a..56d7bc228cb3 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -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); |