Re: [PATCH 0/2] null_blk: make sure submit_queues > 0

2017-08-07 Thread Jens Axboe
On 08/07/2017 06:36 AM, weiping zhang wrote: > On Thu, Aug 03, 2017 at 12:26:00AM +0800, weiping zhang wrote: >> Hi, >> >> two misc patch for null_blk, >> >> null_blk: simplify logic for use_per_node_hctx >> simplify code logic, if use_per_node_hctx set submit_queues same as >> nr_online_nodes. >>

Re: [PATCH 0/2] null_blk: make sure submit_queues > 0

2017-08-07 Thread weiping zhang
On Thu, Aug 03, 2017 at 12:26:00AM +0800, weiping zhang wrote: > Hi, > > two misc patch for null_blk, > > null_blk: simplify logic for use_per_node_hctx > simplify code logic, if use_per_node_hctx set submit_queues same as > nr_online_nodes. > > null_blk: make sure submit_queues > 0 > set submit

[PATCH 0/2] null_blk: make sure submit_queues > 0

2017-08-02 Thread weiping zhang
Hi, two misc patch for null_blk, null_blk: simplify logic for use_per_node_hctx simplify code logic, if use_per_node_hctx set submit_queues same as nr_online_nodes. null_blk: make sure submit_queues > 0 set submit_queues to 1 by default, and add a handle for it's value < 0, no matter what user w