]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/scsi-inquiry-too-short-ratelimit
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / scsi-inquiry-too-short-ratelimit
1 From: Hannes Reinecke <hare@suse.de>
2 Subject: INQUIRY result too short (5) message flood
3 References: bnc#432535
4
5 During installation with vioserver/vioclient lots of
6 scsi scan: INQUIRY result too short (5), using 36
7 messages are printed. These really should be ratelimited.
8
9 Signed-off-by: Hannes Reinecke <hare@suse.de>
10
11 diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
12 index b14dc02..ac46d4b 100644
13 --- a/drivers/scsi/scsi_scan.c
14 +++ b/drivers/scsi/scsi_scan.c
15 @@ -680,7 +680,7 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
16 * and displaying garbage for the Vendor, Product, or Revision
17 * strings.
18 */
19 - if (sdev->inquiry_len < 36) {
20 + if (sdev->inquiry_len < 36 && printk_ratelimit()) {
21 printk(KERN_INFO "scsi scan: INQUIRY result too short (%d),"
22 " using 36\n", sdev->inquiry_len);
23 sdev->inquiry_len = 36;