RE: [PATCH v4 3/9] scsi: ufshpb: Add region's reads counter

2021-03-02 Thread Avri Altman
> > Hi Avri, > > > +static void ufshpb_normalization_work_handler(struct work_struct *work) > > +{ > > +struct ufshpb_lu *hpb; > > +int rgn_idx; > > + > > +hpb = container_of(work, struct ufshpb_lu, > ufshpb_normalization_work); > > + > > +for (rgn_idx = 0; rgn_idx

RE: [PATCH v4 3/9] scsi: ufshpb: Add region's reads counter

2021-03-02 Thread Daejun Park
Hi Avri, > +static void ufshpb_normalization_work_handler(struct work_struct *work) > +{ > +struct ufshpb_lu *hpb; > +int rgn_idx; > + > +hpb = container_of(work, struct ufshpb_lu, > ufshpb_normalization_work); > + > +for (rgn_idx = 0; rgn_idx < hpb->rgns_per_lu; r

[PATCH v4 3/9] scsi: ufshpb: Add region's reads counter

2021-02-26 Thread Avri Altman
In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. less intuitive however, is that we also reset it upon region's deact