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;
-
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
@@ -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
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
4 matches
Mail list logo