From: Douglas Gilbert <dougg@torque.net>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Maurice Volaski <mvolaski@aecom.yu.edu>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Why is the kernel complaining about large SCSI LUNs
Date: Sat, 08 Jan 2005 11:27:02 +1000 [thread overview]
Message-ID: <41DF36E6.7030804@torque.net> (raw)
In-Reply-To: <1105141041.4151.32.camel@mulgrave>
[-- Attachment #1: Type: text/plain, Size: 912 bytes --]
James Bottomley wrote:
> On Fri, 2005-01-07 at 18:25 -0500, Maurice Volaski wrote:
>
>>Are you saying that MPT driver is seeing some garbage data where
>>there should be valid data structures and that garbage data is being
>>generated by the external hardware RAID attached to the card (the
>>only thing attached to it).
>
>
> I'm not saying anything yet, because I have insufficient data to form a
> conclusion. What I want to know is what the kernel was doing before it
> got this message. It currently looks like the REPORT_LUNS command
> didn't return any data in even though returned status was GOOD, so it's
> probably a fault either of the device or the controller.
James,
Perhaps a bit of defensive programming would make that code
more robust. Also the resid could/should be checked as well
(and in many other cases).
[Tracking down the cause would obviously be useful as well.]
Doug Gilbert
[-- Attachment #2: scsi_scan2610bk5pl.diff --]
[-- Type: text/x-patch, Size: 338 bytes --]
--- linux/drivers/scsi/scsi_scan.c 2005-01-03 20:52:55.000000000 +1000
+++ linux/drivers/scsi/scsi_scan.c2610bk5pl 2005-01-08 11:18:25.066656384 +1000
@@ -940,6 +940,7 @@
(sdev->host->unchecked_isa_dma ? __GFP_DMA : 0));
if (!lun_data)
goto out_release_request;
+ memset(lun_data, 0, length);
scsi_cmd[0] = REPORT_LUNS;
next prev parent reply other threads:[~2005-01-08 1:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 16:07 Why is the kernel complaining about large SCSI LUNs Maurice Volaski
2005-01-07 16:16 ` Eric Moore
2005-01-07 16:22 ` Arjan van de Ven
2005-01-07 16:30 ` James Bottomley
2005-01-07 23:25 ` Maurice Volaski
2005-01-07 23:37 ` James Bottomley
2005-01-08 0:07 ` Maurice Volaski
2005-01-08 1:27 ` Douglas Gilbert [this message]
2005-01-08 1:57 ` Bryan Henderson
-- strict thread matches above, loose matches on Subject: below --
2005-01-12 23:12 Maurice Volaski
2005-01-08 0:59 Moore, Eric Dean
2004-12-27 1:27 Maurice Volaski
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=41DF36E6.7030804@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mvolaski@aecom.yu.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.