On Mon, Apr 20, 2020 at 02:07:13PM -0700, Bart Van Assche wrote: > On 4/6/20 12:37 PM, Weiping Zhang wrote: > >This patch add a new member nr_allocated_map_rqs to the > >struct blk_mq_tag_set to record the number of maps and requests have > >been allocated for this tagset. > > > >Now there is a problem when we increase hardware queue count, we do not > >allocate maps and request for the new allocated hardware queue, it will > >be fixed in the next patch. > > > >Since request needs lots of memory, it's not easy alloc so many memory > >dynamically, espeicially when system is under memory pressure. > > > >This patch allow nr_hw_queues does not equal to the nr_allocated_map_rqs, > >to avoid alloc/free memory when change hardware queue count. > > It seems to me that patches 6 and 7 combined fix a single issue. How > about combining these two patches into a single patch? > It's ok for me, the reason why I split two patches is that make patch review more easily, since patch-6 actually does not change original logic. If you think combined them is more better, I can merge these two patches. Thanks > Thanks, > > Bart.