[ 3.5.y.z extended stable ] Patch "[SCSI] mpt2sas: Fix for max_sectors warning message is" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Jul 8 10:59:02 UTC 2013
This is a note to let you know that I have just added a patch titled
[SCSI] mpt2sas: Fix for max_sectors warning message is
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From acefeed6693693042f5efcdbdbe2a27be6d48fe8 Mon Sep 17 00:00:00 2001
From: "sreekanth.reddy at lsi.com" <sreekanth.reddy at lsi.com>
Date: Tue, 17 Jul 2012 15:56:09 +0530
Subject: [PATCH] [SCSI] mpt2sas: Fix for max_sectors warning message is
stating the incorrect range
commit eece5de59c090cf6cc04622a0abedb1553383cdc upstream.
When specifying the command line option "max_sectors" less than 64, then
warning message should provide correct upper boundary value 32767 instead of
8192.
Signed-off-by: Sreekanth Reddy <sreekanth.reddy at lsi.com>
Signed-off-by: James Bottomley <JBottomley at Parallels.com>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
drivers/scsi/mpt2sas/mpt2sas_scsih.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index d672b64..e6d2e69 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -8061,8 +8061,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (max_sectors != 0xFFFF) {
if (max_sectors < 64) {
shost->max_sectors = 64;
- printk(MPT2SAS_WARN_FMT "Invalid value %d passed "
- "for max_sectors, range is 64 to 8192. Assigning "
+ printk(MPT2SAS_WARN_FMT "Invalid value %d passed "\
+ "for max_sectors, range is 64 to 32767. Assigning "\
"value of 64.\n", ioc->name, max_sectors);
} else if (max_sectors > 32767) {
shost->max_sectors = 32767;
--
1.8.1.2
More information about the kernel-team
mailing list