This change is to follow up our discussion on event log for media management during LSF/MM 2017. I have included feedbacks from Hannes Reinecke, Ewan D. Milne, and Benjamin Block. Please kindly let me know your thoughts on this. 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/scsi_error.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/scsi/scsi_lib.c | 58 +++++++++++++++++++++++++++++++++++++++++++++- drivers/scsi/scsi_scan.c | 4 ++++ drivers/scsi/scsi_sysfs.c | 51 ++++++++++++++++++++++++++++++++++++++++ include/scsi/scsi_common.h | 6 +++++ include/scsi/scsi_device.h | 37 ++++++++++++++++++++++++++++- 7 files changed, 226 insertions(+), 2 deletions(-) -- 2.9.3