On 03/01/2018 08:40 PM, Damien Le Moal wrote: > Currently, libata ignores requests RQF_QUIET flag and print error > messages for failed commands, regardless if this flag is set in the > command request. Fix this by introducing the ata_eh_quiet() function and > using this function in ata_eh_link_autopsy() to determine if the EH > context should be quiet. This works by counting the number of failed > commands and the number of commands with the quiet flag set. If both > numbers are equal, the the EH context can be set to quiet and all error > messages suppressed. Otherwise, only the error messages for the failed > commands are suppressed and the link Emask and irq_stat messages printed. > > Signed-off-by: Damien Le Moal <damien.lemoal@xxxxxxx> > --- > drivers/ata/libata-eh.c | 26 +++++++++++++++++++++++++- > drivers/ata/libata-scsi.c | 3 +++ > 2 files changed, 28 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)