Skip to content

Commit 164c3d0

Browse files
author
Christoph Hellwig
committed
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>
1 parent 1d3b991 commit 164c3d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/ide/ide-probe.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,7 @@ static int ide_init_queue(ide_drive_t *drive)
796796
* This will be fixed once we teach pci_map_sg() about our boundary
797797
* requirements, hopefully soon. *FIXME*
798798
*/
799-
if (!PCI_DMA_BUS_IS_PHYS)
800-
max_sg_entries >>= 1;
799+
max_sg_entries >>= 1;
801800
#endif /* CONFIG_PCI */
802801

803802
blk_queue_max_segments(q, max_sg_entries);

0 commit comments

Comments
 (0)