From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751849AbZHAFmj (ORCPT ); Sat, 1 Aug 2009 01:42:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751428AbZHAFmi (ORCPT ); Sat, 1 Aug 2009 01:42:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38461 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbZHAFmi (ORCPT ); Sat, 1 Aug 2009 01:42:38 -0400 Date: Sat, 1 Aug 2009 07:34:54 +0200 From: Oleg Nesterov To: Lai Jiangshan Cc: Andrew Morton , Ingo Molnar , Rusty Russell , linux-kernel@vger.kernel.org, Li Zefan , Miao Xie , Paul Menage , Peter Zijlstra , Gautham R Shenoy Subject: Re: [PATCH] cpusets: rework guarantee_online_cpus() to fix deadlock with cpu_down() Message-ID: <20090801053454.GA26596@redhat.com> References: <20090729023302.GA8899@redhat.com> <20090729212125.GA16970@redhat.com> <20090729212216.GB16970@redhat.com> <20090729230043.GA28175@redhat.com> <4A70FD26.1010800@cn.fujitsu.com> <20090730175108.GC3617@redhat.com> <4A725594.8020205@cn.fujitsu.com> <20090801044236.GA23975@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090801044236.GA23975@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for noise, forgot to mention... On 08/01, Oleg Nesterov wrote: > > - adds cpuset->cpumask_lock, this lock is taken by > update_cpumask() around cpumask_copy(cs->cpus_allowed, newcpus). Most probably there are other places where ->cpus_allowed is changed, in that case they need ->cpumask_lock too. But this is trivial, the patch I sent just explains what I meant. Oleg.