RE: RE: [PATCH v4 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-03-02 Thread Daejun Park
Hi Avri, > > > > Hi Avri, > > > > > +static void ufshpb_read_to_handler(struct work_struct *work) > > > +{ > > > +struct delayed_work *dwork = to_delayed_work(work); > > > +struct ufshpb_lu *hpb; > > > +struct victim_select_info *lru_info; > > > +struct ufshpb_regi

RE: [PATCH v4 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-03-02 Thread Daejun Park
Hi Avri, > +static void ufshpb_read_to_handler(struct work_struct *work) > +{ > +struct delayed_work *dwork = to_delayed_work(work); > +struct ufshpb_lu *hpb; > +struct victim_select_info *lru_info; > +struct ufshpb_region *rgn; > +unsigned long flags; > +

RE: [PATCH v4 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-03-02 Thread Avri Altman
> > Hi Avri, > > > +static void ufshpb_read_to_handler(struct work_struct *work) > > +{ > > +struct delayed_work *dwork = to_delayed_work(work); > > +struct ufshpb_lu *hpb; > > +struct victim_select_info *lru_info; > > +struct ufshpb_region *rgn; > > +unsig

[PATCH v4 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-02-26 Thread Avri Altman
In order not to hang on to “cold” regions, we shall inactivate a region that has no READ access for a predefined amount of time - READ_TO_MS. For that purpose we shall monitor the active regions list, polling it on every POLLING_INTERVAL_MS. On timeout expiry we shall add the region to the "to-be-i