Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-13 Thread Johannes Thumshirn
On Thu, Jan 12, 2017 at 02:54:38PM -0700, Jens Axboe wrote: > On Thu, Jan 12 2017, Bart Van Assche wrote: > > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set > > > *set) > > > if (set->nr_hw_queues > nr_cpu_ids) >

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-13 Thread Johannes Thumshirn
On Thu, Jan 12, 2017 at 02:54:38PM -0700, Jens Axboe wrote: > On Thu, Jan 12 2017, Bart Van Assche wrote: > > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set > > > *set) > > > if (set->nr_hw_queues > nr_cpu_ids) >

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Jens Axboe
On Thu, Jan 12 2017, Bart Van Assche wrote: > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > > if (set->nr_hw_queues > nr_cpu_ids) > > set->nr_hw_queues = nr_cpu_ids; > > > > + ret =

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Jens Axboe
On Thu, Jan 12 2017, Bart Van Assche wrote: > On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > > if (set->nr_hw_queues > nr_cpu_ids) > > set->nr_hw_queues = nr_cpu_ids; > > > > + ret =

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > if (set->nr_hw_queues > nr_cpu_ids) > set->nr_hw_queues = nr_cpu_ids; > > + ret = -ENOMEM; > set->tags = kzalloc_node(nr_cpu_ids *

Re: [PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-12 Thread Bart Van Assche
On Wed, 2017-01-11 at 14:40 -0700, Jens Axboe wrote: > @@ -2392,12 +2425,12 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) > if (set->nr_hw_queues > nr_cpu_ids) > set->nr_hw_queues = nr_cpu_ids; > > + ret = -ENOMEM; > set->tags = kzalloc_node(nr_cpu_ids *

[PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-11 Thread Jens Axboe
Prep patch for adding an extra tag map for scheduler requests. Signed-off-by: Jens Axboe --- block/blk-mq.c | 119 - block/blk-mq.h | 14 --- 2 files changed, 84 insertions(+), 49 deletions(-) diff --git

[PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-11 Thread Jens Axboe
Prep patch for adding an extra tag map for scheduler requests. Signed-off-by: Jens Axboe --- block/blk-mq.c | 119 - block/blk-mq.h | 14 --- 2 files changed, 84 insertions(+), 49 deletions(-) diff --git a/block/blk-mq.c