Re: [PATCH 5/6] libata: Honor RQF_QUIET flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux