]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: sd: Add silence_suspend flag to suppress some PM messages
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 28 Feb 2022 11:36:51 +0000 (13:36 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Mar 2022 04:56:29 +0000 (23:56 -0500)
commitc882a87edc705888313b5d7294376b80feddd321
tree2bc7de94b61acb4a084d8878b1ebd16ef69f8d4f
parent8b6e208068aabc0ebca639140c103b579b407159
scsi: core: sd: Add silence_suspend flag to suppress some PM messages

Kernel messages produced during runtime PM can cause a never-ending cycle
because user space utilities (e.g. journald or rsyslog) write the messages
back to storage, causing runtime resume, more messages, and so on.

Messages that tell of things that are expected to happen are arguably
unnecessary, so add a flag to suppress them. This flag is used by the UFS
driver.

Link: https://lore.kernel.org/r/20220228113652.970857-2-adrian.hunter@intel.com
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_error.c
drivers/scsi/sd.c
include/scsi/scsi_device.h