[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190910071349.GH2063@dhcp22.suse.cz>
Date: Tue, 10 Sep 2019 09:13:49 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Yunsheng Lin <linyunsheng@...wei.com>
Cc: Greg KH <gregkh@...uxfoundation.org>, rafael@...nel.org,
linux-kernel@...r.kernel.org, peterz@...radead.org,
mingo@...nel.org, linuxarm@...wei.com
Subject: Re: [PATCH] driver core: ensure a device has valid node id in
device_add()
On Tue 10-09-19 14:43:32, Yunsheng Lin wrote:
> On 2019/9/9 17:53, Greg KH wrote:
[...]
> > But as we do not know the node, can we cause more harm by randomly
> > picking one (i.e. putting it all in node 0)?
> If we do not pick node 0 for device with invalid node, then caller need
> to check the node id and pick one, and currently different callers
> does a different checking:
Could you be more specific about who those callers are why do they need
the node id for? Because the page allocator can handle that as already
pointed out in my other email. Who else does really have to know about
the node apart the allocator?
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists