[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <010001607ad7197e-2f933a99-5ecd-4245-acd8-acfe3e3bdf9a-000000@email.amazonses.com>
Date: Thu, 21 Dec 2017 20:50:05 +0000
From: Jeremy Cline <jeremy@...ine.org>
To: "James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Jeremy Cline <jeremy@...ine.org>
Subject: [PATCH] scsi: sd: Use warn for logs about no caching info
When no caching mode information can be found for a disk, use the
warning log level rather than error. It is common for this to occur
with cheap USB sticks.
Signed-off-by: Jeremy Cline <jeremy@...ine.org>
---
drivers/scsi/sd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index a028ab3322a9..9838d94b047e 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2789,7 +2789,7 @@ sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer)
}
}
- sd_first_printk(KERN_ERR, sdkp, "No Caching mode page found\n");
+ sd_first_printk(KERN_WARNING, sdkp, "No Caching mode page found\n");
goto defaults;
Page_found:
@@ -2844,7 +2844,7 @@ sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer)
"Assuming drive cache: write back\n");
sdkp->WCE = 1;
} else {
- sd_first_printk(KERN_ERR, sdkp,
+ sd_first_printk(KERN_WARNING, sdkp,
"Assuming drive cache: write through\n");
sdkp->WCE = 0;
}
--
2.14.3
Powered by blists - more mailing lists