Re: [PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-10-06 Thread Sagi Grimberg
On 06/10/16 11:25, Alexander Gordeev wrote: On Thu, Oct 06, 2016 at 12:47:26AM +0300, Sagi Grimberg wrote: @@ -1908,33 +1909,36 @@ static void blk_mq_realloc_hw_ctxs(struct blk_mq_tag_set *set, if (node == NUMA_NO_NODE) node = set->numa_node; -

Re: [PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-10-06 Thread Alexander Gordeev
On Thu, Oct 06, 2016 at 12:47:26AM +0300, Sagi Grimberg wrote: > > >@@ -1908,33 +1909,36 @@ static void blk_mq_realloc_hw_ctxs(struct > >blk_mq_tag_set *set, > > if (node == NUMA_NO_NODE) > > node = set->numa_node; > > > >-hctxs[i] = kzalloc_node(sizeof

Re: [PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-10-05 Thread Sagi Grimberg
@@ -1908,33 +1909,36 @@ static void blk_mq_realloc_hw_ctxs(struct blk_mq_tag_set *set, if (node == NUMA_NO_NODE) node = set->numa_node; - hctxs[i] = kzalloc_node(sizeof(struct blk_mq_hw_ctx), - GFP_KERN

[PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-09-30 Thread Alexander Gordeev
Rework blk_mq_realloc_hw_ctxs() so deallocation is done in order reverse to allocation and indentation is bit more easy to read. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 40 ++-- 1 file changed, 22 insertions(+), 18