RE: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-16 Thread Avri Altman
> > int ret = 0; > > @@ -1263,6 +1271,16 @@ static int ufshpb_add_region(struct ufshpb_lu > > *hpb, struct ufshpb_region *rgn) > >* because the device could detect this region > >* by not issuing HPB_READ > >*/ > > + > >

Re: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-15 Thread Can Guo
On 2021-03-02 21:24, Avri Altman wrote: In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file changed, 19

RE: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-11 Thread Avri Altman
> > diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c > > index a8f8d13af21a..6f4fd22eaf2f 100644 > > --- a/drivers/scsi/ufs/ufshpb.c > > +++ b/drivers/scsi/ufs/ufshpb.c > > @@ -17,6 +17,7 @@ > > #include "../sd.h" > > > > #define ACTIVATION_THRESHOLD 4 /* 4 IOs */ > > +#define E

Re: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-10 Thread Can Guo
Hi Avri, On 2021-03-02 21:24, Avri Altman wrote: In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file ch

[PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-02 Thread Avri Altman
In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a