From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932585AbdBHRh7 (ORCPT ); Wed, 8 Feb 2017 12:37:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:59223 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754664AbdBHRhz (ORCPT ); Wed, 8 Feb 2017 12:37:55 -0500 Date: Wed, 8 Feb 2017 16:21:07 +0100 From: Michal Hocko To: Christoph Lameter Cc: Thomas Gleixner , Mel Gorman , Vlastimil Babka , Dmitry Vyukov , Tejun Heo , "linux-mm@kvack.org" , LKML , Ingo Molnar , Peter Zijlstra , syzkaller , Andrew Morton Subject: Re: mm: deadlock between get_online_cpus/pcpu_alloc Message-ID: <20170208152106.GP5686@dhcp22.suse.cz> References: <20170207123708.GO5065@dhcp22.suse.cz> <20170207135846.usfrn7e4znjhmogn@techsingularity.net> <20170207141911.GR5065@dhcp22.suse.cz> <20170207153459.GV5065@dhcp22.suse.cz> <20170207162224.elnrlgibjegswsgn@techsingularity.net> <20170207164130.GY5065@dhcp22.suse.cz> <20170208073527.GA5686@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 08-02-17 09:11:06, Cristopher Lameter wrote: > On Wed, 8 Feb 2017, Michal Hocko wrote: > > > > Huch? stop_machine() is horrible and heavy weight. Don't go there, there > > > must be simpler solutions than that. > > > > Absolutely agreed. We are in the page allocator path so using the > > stop_machine* is just ridiculous. And, in fact, there is a much simpler > > solution [1] > > That is nonsense. stop_machine would be used when adding removing a > processor. There would be no need to synchronize when looping over active > cpus anymore. get_online_cpus() etc would be removed from the hot > path since the cpu masks are guaranteed to be stable. I have no idea what you are trying to say and how this is related to the deadlock we are discussing here. We certainly do not need to add stop_machine the problem. And yeah, dropping get_online_cpus was possible after considering all fallouts. -- Michal Hocko SUSE Labs