linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2.6.12-rc4 1/1] libata: stop setting sdev->host->max_sectors for lba48 drives
@ 2005-05-12 19:49 John W. Linville
  2005-05-15 22:02 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: John W. Linville @ 2005-05-12 19:49 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-ide, stuart_hayes

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>
---

 drivers/scsi/libata-scsi.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

--- linux-2.6.12-rc4/drivers/scsi/libata-scsi.c.orig	2005-05-12 15:13:51.414435435 -0400
+++ linux-2.6.12-rc4/drivers/scsi/libata-scsi.c	2005-05-12 15:22:55.813648107 -0400
@@ -347,7 +347,10 @@ int ata_scsi_slave_config(struct scsi_de
 		 */
 		if ((dev->flags & ATA_DFLAG_LBA48) &&
 		    ((dev->flags & ATA_DFLAG_LOCK_SECTORS) == 0)) {
-			sdev->host->max_sectors = 2048;
+			/*
+			 * do not overwrite sdev->host->max_sectors, since
+			 * other drives on this host may not support LBA48
+			 */
 			blk_queue_max_sectors(sdev->request_queue, 2048);
 		}
 	}
-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-15 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 19:49 [patch 2.6.12-rc4 1/1] libata: stop setting sdev->host->max_sectors for lba48 drives John W. Linville
2005-05-15 22:02 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).