Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752787AbbLCQ46 (ORCPT ); Thu, 3 Dec 2015 11:56:58 -0500 Received: from mail-oi0-f54.google.com ([209.85.218.54]:33145 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752424AbbLCQ44 (ORCPT ); Thu, 3 Dec 2015 11:56:56 -0500 Subject: Re: [PATCH] blk-mq: Avoid memoryless numa node encoded in hctx numa_node To: Raghavendra K T References: <1449055745-14575-1-git-send-email-raghavendra.kt@linux.vnet.ibm.com> Cc: tom.leiming@gmail.com, linux-block@vger.kernel.org, nacc@linux.vnet.ibm.com, linux-kernel@vger.kernel.org From: Jens Axboe Message-ID: <56607456.1090807@kernel.dk> Date: Thu, 3 Dec 2015 09:56:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1449055745-14575-1-git-send-email-raghavendra.kt@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 20 On 12/02/2015 04:29 AM, Raghavendra K T wrote: > In architecture like powerpc, we can have cpus without any local memory > attached to it (a.k.a memoryless nodes). In such cases cpu to node mapping > can result in memory allocation hints for block hctx->numa_node populated > with node values which does not have real memory. > > Instead use local_memory_node(), which is guaranteed to have memory. > local_memory_node is a noop in other architectures that does not support > memoryless nodes. Applied for 4.5, thanks. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/