From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755331AbbIZBXV (ORCPT ); Fri, 25 Sep 2015 21:23:21 -0400 Received: from mga11.intel.com ([192.55.52.93]:21006 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbbIZBXU (ORCPT ); Fri, 25 Sep 2015 21:23:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,589,1437462000"; d="scan'208";a="568698719" Subject: [PATCH 0/3] numa allocations for devm and pmem From: Dan Williams To: tj@kernel.org Cc: Ross Zwisler , linux-nvdimm@ml01.01.org, hch@lst.de, linux-kernel@vger.kernel.org Date: Fri, 25 Sep 2015 21:17:37 -0400 Message-ID: <20150926011243.2848.82422.stgit@dwillia2-desk3.jf.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I noticed that pmem should be using blk_alloc_queue_node() and then I wondered about the devm allocations... So, here is a quick conversion of devm to use dev_to_node() for node local allocations by default and as a result pmem to allocate all its driver infrastructure near to the device. --- Dan Williams (3): devm: make allocations numa aware by default devm_memremap_pages: use numa_mem_id pmem, memremap: convert to numa aware allocations drivers/base/devres.c | 19 ++++++++++--------- drivers/nvdimm/pmem.c | 5 +++-- include/linux/device.h | 16 ++++++++++++---- kernel/memremap.c | 9 +++++---- 4 files changed, 30 insertions(+), 19 deletions(-)