Commit 34328f05 authored by Jeff Garzik's avatar Jeff Garzik

[libata] Explicitly set max_phys_segments to 128 (current blk default),

in case MAX_PHYS_SEGMENTS ever changes.
parent cc0c2170
...@@ -123,6 +123,7 @@ int ata_scsi_slave_config(struct scsi_device *sdev) ...@@ -123,6 +123,7 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
{ {
sdev->use_10_for_rw = 1; sdev->use_10_for_rw = 1;
sdev->use_10_for_ms = 1; sdev->use_10_for_ms = 1;
blk_queue_max_phys_segments(sdev->request_queue, ATA_MAX_PRD / 2);
return 0; /* scsi layer doesn't check return value, sigh */ return 0; /* scsi layer doesn't check return value, sigh */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment