]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: Print write through due to no caching mode page as warning
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Wed, 13 Oct 2021 07:50:50 +0000 (09:50 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Oct 2021 02:38:34 +0000 (22:38 -0400)
commitc4da1205752dfda13571112dd964436e4cc8f348
tree16f30831397b49115d3123d2486090cc6c9d9ede
parenta47c6b713e89eef9e26ef9b17944fc807510bf3c
scsi: sd: Print write through due to no caching mode page as warning

For SD cardreaders it is extremely common not to have a cache.
Consequently, the following messages do not point to a real error one could
try to fix but rather describe how the disk works:

  sd 0:0:0:0: [sda] No Caching mode page found
  sd 0:0:0:0: [sda] Assuming drive cache: write through

Print these messages as warnings instead of errors.

Link: https://lore.kernel.org/r/20211013075050.3870354-1-martin.kepplinger@puri.sm
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c