[PATCH] libata: stop setting sdev->host->max_sectors for lba48 drives

Avoid changing sdev->host->max_sectors because it can prevent use of
non-lba48 drives on other ports of the same adapter.

Signed-off-by: Stuart Hayes <stuart_hayes@Dell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

John W. Linville and committed by
Jeff Garzik
f85bdb9c 88d7bd8c

+4 -1
+4 -1
drivers/scsi/libata-scsi.c
··· 347 */ 348 if ((dev->flags & ATA_DFLAG_LBA48) && 349 ((dev->flags & ATA_DFLAG_LOCK_SECTORS) == 0)) { 350 - sdev->host->max_sectors = 2048; 351 blk_queue_max_sectors(sdev->request_queue, 2048); 352 } 353 }
··· 347 */ 348 if ((dev->flags & ATA_DFLAG_LBA48) && 349 ((dev->flags & ATA_DFLAG_LOCK_SECTORS) == 0)) { 350 + /* 351 + * do not overwrite sdev->host->max_sectors, since 352 + * other drives on this host may not support LBA48 353 + */ 354 blk_queue_max_sectors(sdev->request_queue, 2048); 355 } 356 }