This change is to follow up our discussion on event log for media management during LSF/MM 2017. Changes from RFC v3: Incorporate feedback by Johannes Thumshirn Thanks, Song Song Liu (2): scsi: generate uevent for SCSI sense code scsi: add rate limit to scsi sense code uevent drivers/scsi/Kconfig | 14 +++++++++++ drivers/scsi/hosts.c | 4 ++++ drivers/scsi/scsi_error.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/scsi/scsi_lib.c | 58 +++++++++++++++++++++++++++++++++++++++++++++- drivers/scsi/scsi_sysfs.c | 51 ++++++++++++++++++++++++++++++++++++++++ include/scsi/scsi_common.h | 6 +++++ include/scsi/scsi_device.h | 27 ++++++++++++++++++++- include/scsi/scsi_host.h | 13 +++++++++++ 8 files changed, 229 insertions(+), 2 deletions(-) -- 2.9.3