RE: [PATCH 4/8] scsi: ufshpb: Make eviction depends on region's reads

2021-01-31 Thread Avri Altman
> > > Hi Avri, > > > + /* > > + * in host control mode, verify that the exiting region > > + * has less reads > > + */ > > + if (ufshpb_mode == HPB_HOST_CONTROL && > > + atomic64_read(>reads) > (EVICTION_THRSHLD >>

RE: [PATCH 4/8] scsi: ufshpb: Make eviction depends on region's reads

2021-01-31 Thread Daejun Park
Hi Avri, > + /* > + * in host control mode, verify that the exiting region > + * has less reads > + */ > + if (ufshpb_mode == HPB_HOST_CONTROL && > + atomic64_read(>reads) > (EVICTION_THRSHLD >> 1)) Why we use shifted