scsi: ufs: ufshpb: Make eviction depend on region's reads
authorAvri Altman <avri.altman@wdc.com>
Mon, 12 Jul 2021 09:50:32 +0000 (12:50 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 1 Aug 2021 20:05:14 +0000 (16:05 -0400)
commit6c59cb501b86f8cddc486d6846732375f7baef24
tree332f62a18a3d15255ecdf073d13c5f52ac0a4078
parentc76a188856413f0a40585a7bc6801c755a4c0c8d
scsi: ufs: ufshpb: Make eviction depend on region's reads

In host mode, eviction is considered an extreme measure. Verify that the
entering region has enough reads, and the exiting region has fewer reads.

Link: https://lore.kernel.org/r/20210712095039.8093-6-avri.altman@wdc.com
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c