Re: [RFC PATCH 06/13] scsi: scsi_dh: ufshpb: Prepare for L2P cache management

2020-05-15 Thread Bart Van Assche
On 2020-05-15 03:30, Avri Altman wrote: > +static int ufshpb_mempool_init(struct ufshpb_dh_lun *hpb) > +{ > + unsigned int max_active_subregions = hpb->max_active_regions * > + subregions_per_region; > + int i; > + > + INIT_LIST_HEAD(>lh_map_ctx); > +

[RFC PATCH 06/13] scsi: scsi_dh: ufshpb: Prepare for L2P cache management

2020-05-15 Thread Avri Altman
Preparing for L2P cache management, this patch introduces the memory pool supportive structures and constants. The logical unit address space is divided into equally-sized slots called Regions. Each such region is further divided into equally-sized subregions. subregions which theirs L2P mapping