]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufshpb: Do not report victim error in HCM
authorAvri Altman <avri.altman@wdc.com>
Sun, 8 Aug 2021 09:00:24 +0000 (12:00 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Aug 2021 02:25:36 +0000 (22:25 -0400)
commit4c338025779dff8ccbcd2f137ed675a36e79685d
treec49ce0d2e442575c777ef48ee3138b6a3e5329c6
parent8442d1d8deb37c1182e8f7d31e20aaa27a186dfd
scsi: ufs: ufshpb: Do not report victim error in HCM

In host control mode, eviction is perceived as an extreme measure. There
are several conditions that both the entering and exiting regions should
meet, so that eviction will take place.

The common case however, is that those conditions are rarely met, so it is
normal that the act of eviction fails.  Therefore, do not report an error
in host control mode if eviction fails.

Link: https://lore.kernel.org/r/20210808090024.21721-5-avri.altman@wdc.com
Fixes: 21ab20ee6842 (scsi: ufs: ufshpb: Make eviction depend on region's reads)
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c