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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:22:54 +0000 (14:22 +0200)
commit6ade94e6afc6b7f6b0829c521cc3caaa7fbb82ab
treee2968e3e42dcb0086e981d2f7c7965fc507556db
parent5e217aa2c8258ed12031e1b6bc8818f7cd86bdf2
scsi: core: sd: Add silence_suspend flag to suppress some PM messages

commit af4edb1d50c6d1044cb34bc43621411b7ba2cffe upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_error.c
drivers/scsi/sd.c
include/scsi/scsi_device.h