* [patch 1/1] scsi: Disable short inquiry log by default
@ 2007-04-02 21:20 brking
2007-04-02 21:35 ` Matthew Wilcox
2007-04-02 21:42 ` James Bottomley
0 siblings, 2 replies; 4+ messages in thread
From: brking @ 2007-04-02 21:20 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, brking
If a scsi device reports less than 36 bytes of standard inquiry
data, scsi core logs a KERN_INFO printk indicating this. It was
observed that this results in lots of clutter in the log on
systems with devices that respond to a SCSI Inquiry with PQ=3 or
PQ=1 with less than 36 bytes of inquiry data, such as ibmvscsi.
Disable this log by default.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
drivers/scsi/scsi_scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/scsi/scsi_scan.c~scsi_scan_short_inq_log drivers/scsi/scsi_scan.c
--- linux-2.6/drivers/scsi/scsi_scan.c~scsi_scan_short_inq_log 2007-04-02 15:10:46.000000000 -0500
+++ linux-2.6-bjking1/drivers/scsi/scsi_scan.c 2007-04-02 15:13:39.000000000 -0500
@@ -662,8 +662,8 @@ static int scsi_probe_lun(struct scsi_de
* strings.
*/
if (sdev->inquiry_len < 36) {
- printk(KERN_INFO "scsi scan: INQUIRY result too short (%d),"
- " using 36\n", sdev->inquiry_len);
+ SCSI_LOG_SCAN_BUS(1, printk(KERN_INFO "scsi scan: INQUIRY result too"
+ " short (%d), using 36\n", sdev->inquiry_len));
sdev->inquiry_len = 36;
}
_
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch 1/1] scsi: Disable short inquiry log by default
2007-04-02 21:20 [patch 1/1] scsi: Disable short inquiry log by default brking
@ 2007-04-02 21:35 ` Matthew Wilcox
2007-04-02 21:42 ` James Bottomley
1 sibling, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2007-04-02 21:35 UTC (permalink / raw)
To: brking; +Cc: James.Bottomley, linux-scsi
On Mon, Apr 02, 2007 at 04:20:22PM -0500, brking@linux.vnet.ibm.com wrote:
> if (sdev->inquiry_len < 36) {
> - printk(KERN_INFO "scsi scan: INQUIRY result too short (%d),"
> - " using 36\n", sdev->inquiry_len);
> + SCSI_LOG_SCAN_BUS(1, printk(KERN_INFO "scsi scan: INQUIRY result too"
> + " short (%d), using 36\n", sdev->inquiry_len));
> sdev->inquiry_len = 36;
The wrapping's a bit awkward. How about:
+ SCSI_LOG_SCAN_BUS(1, printk(KERN_INFO "scsi scan: INQUIRY "
+ "result too short (%d), using 36\n",
+ sdev->inquiry_len);
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch 1/1] scsi: Disable short inquiry log by default
2007-04-02 21:20 [patch 1/1] scsi: Disable short inquiry log by default brking
2007-04-02 21:35 ` Matthew Wilcox
@ 2007-04-02 21:42 ` James Bottomley
2007-04-04 18:18 ` Brian King
1 sibling, 1 reply; 4+ messages in thread
From: James Bottomley @ 2007-04-02 21:42 UTC (permalink / raw)
To: brking; +Cc: linux-scsi
On Mon, 2007-04-02 at 16:20 -0500, brking@linux.vnet.ibm.com wrote:
> If a scsi device reports less than 36 bytes of standard inquiry
> data, scsi core logs a KERN_INFO printk indicating this. It was
> observed that this results in lots of clutter in the log on
> systems with devices that respond to a SCSI Inquiry with PQ=3 or
> PQ=1 with less than 36 bytes of inquiry data, such as ibmvscsi.
> Disable this log by default.
It shouldn't be doing this ... the standards are pretty clear, say SPC-3
section 6.4.2
"The standard INQUIRY data shall contain at least 36 bytes"
Horrible things happen when this rule is violated (as it is by some
badly constructed devices), so I'd really like to leave the print in so
we know what we're debugging.
Can't you fix ibmvscsi to be standards compliant?
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 1/1] scsi: Disable short inquiry log by default
2007-04-02 21:42 ` James Bottomley
@ 2007-04-04 18:18 ` Brian King
0 siblings, 0 replies; 4+ messages in thread
From: Brian King @ 2007-04-04 18:18 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-scsi
James Bottomley wrote:
> On Mon, 2007-04-02 at 16:20 -0500, brking@linux.vnet.ibm.com wrote:
>> If a scsi device reports less than 36 bytes of standard inquiry
>> data, scsi core logs a KERN_INFO printk indicating this. It was
>> observed that this results in lots of clutter in the log on
>> systems with devices that respond to a SCSI Inquiry with PQ=3 or
>> PQ=1 with less than 36 bytes of inquiry data, such as ibmvscsi.
>> Disable this log by default.
>
> It shouldn't be doing this ... the standards are pretty clear, say SPC-3
> section 6.4.2
>
> "The standard INQUIRY data shall contain at least 36 bytes"
>
> Horrible things happen when this rule is violated (as it is by some
> badly constructed devices), so I'd really like to leave the print in so
> we know what we're debugging.
>
> Can't you fix ibmvscsi to be standards compliant?
James,
You can drop this patch. I've verified that the current ibmvscsi server
does not do this. I wasn't using the latest ibmvscsi server implementation.
Brian
--
Brian King
eServer Storage I/O
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-04 18:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 21:20 [patch 1/1] scsi: Disable short inquiry log by default brking
2007-04-02 21:35 ` Matthew Wilcox
2007-04-02 21:42 ` James Bottomley
2007-04-04 18:18 ` Brian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox