From: "John W. Linville" <linville@tuxdriver.com>
To: jgarzik@pobox.com
Cc: linux-ide@vger.kernel.org, stuart_hayes@Dell.com
Subject: [patch 2.6.12-rc4 1/1] libata: stop setting sdev->host->max_sectors for lba48 drives
Date: Thu, 12 May 2005 15:49:54 -0400 [thread overview]
Message-ID: <20050512194953.GA8587@tuxdriver.com> (raw)
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
next reply other threads:[~2005-05-12 19:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 19:49 John W. Linville [this message]
2005-05-15 22:02 ` [patch 2.6.12-rc4 1/1] libata: stop setting sdev->host->max_sectors for lba48 drives Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050512194953.GA8587@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=stuart_hayes@Dell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).