Re: [PATCH] mm: Replace all open encodings for NUMA_NO_NODE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Vinod Koul <vkoul@xxxxxxxxxx>
- Subject: Re: [PATCH] mm: Replace all open encodings for NUMA_NO_NODE
- From: Anshuman Khandual <anshuman.khandual@xxxxxxx>
- Date: Mon, 26 Nov 2018 12:15:04 +0530
- Cc: linux-mm@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, linux-fbdev@xxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, intel-wired-lan@xxxxxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-rdma@xxxxxxxxxxxxxxx, dmaengine@xxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, jiangqi903@xxxxxxxxx, hverkuil@xxxxxxxxx
- In-reply-to: <20181124140554.GG3175@vkoul-mobl.Dlink>
- References: <1542966856-12619-1-git-send-email-anshuman.khandual@arm.com> <20181124140554.GG3175@vkoul-mobl.Dlink>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
On 11/24/2018 07:35 PM, Vinod Koul wrote:
> On 23-11-18, 15:24, Anshuman Khandual wrote:
>
>> --- a/drivers/dma/dmaengine.c
>> +++ b/drivers/dma/dmaengine.c
>> @@ -386,7 +386,8 @@ EXPORT_SYMBOL(dma_issue_pending_all);
>> static bool dma_chan_is_local(struct dma_chan *chan, int cpu)
>> {
>> int node = dev_to_node(chan->device->dev);
>> - return node == -1 || cpumask_test_cpu(cpu, cpumask_of_node(node));
>> + return node == NUMA_NO_NODE ||
>> + cpumask_test_cpu(cpu, cpumask_of_node(node));
>> }
>
> I do not see dev_to_node being updated first, that returns -1 so I would
> prefer to check for -1 unless it return NUMA_NO_NODE
Sure will update dev_to_node() to return NUMA_NO_NODE as well.
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]