Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3180834ybb; Mon, 6 Apr 2020 03:56:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKuYjZKkUGZzYBvd9U0GycMtGxkSuzT/5PFAyxY2YXKy56K5MCUwRRYc6LTWg6//ldRHlqN X-Received: by 2002:a05:6830:2151:: with SMTP id r17mr17051909otd.100.1586170564058; Mon, 06 Apr 2020 03:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586170564; cv=none; d=google.com; s=arc-20160816; b=QGGt+IMMvyEhYJVlsGHWcUNH05/gaekBcaTfUeKfCkt7/vXvjE2yoeoCO6O/342rik kNydUqAHxfv3ZPKsrgXY93ajKmdj8EGQntOgbNulX5FsU+tVVCT3LjCgjKofvDEsbPM9 +vVSBLSfufUppO7hIAZoiO9NNgW1t0m41Cuzc2OQT1imgx6SrGEaJPpQsmXpld0W3djN A81afJF9KK0kbK+fWqbfncp9PIThbZ0LSpTHwM5geArYjEzni+gjl1wrYXFIZKalOCj2 3vzdIf5Tt0wancsBbfcJ2MzjvjTCrVGVG9BBlMS8Ame5pjwHGvwbKWLH8CH7sJFwHFC/ 7aLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=x9xU9im3lY5bgbhH0OOYOjdFOMiCVsIKTtIfRjjTtvk=; b=ACrI83eqOjDJri7YnYzorsag1hwlS9g3WxeJ8zu+TdZwa7i3OxXr8lH1oZxmQfOPA7 u6wZGIX6VwbA7lDEEEeXI+p4tstcwyGJ2rc6x7bLYXrTHAagsbEv1gDwsjcqyPevlm0P HpFvDvVSERApH6bc5EoKijW9XS21lgIXP7lrQQc3+5GLQjMTpa6bTXCmiq+cXgL+NKHD 1ogqlMR5O3YHOh0jUbATmdtGed0BKdVyaTrU2aCV/eK6Vbr2YIGOTSsjolWEkBcd2UyK 06to5aJ4dK8/AgOO/ZrQTju7KZxljb4/ovYMkiw99iC6O6Oiqs/ER7HgfB7P64zn+kyW lWOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si8428318otg.211.2020.04.06.03.55.48; Mon, 06 Apr 2020 03:56:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbgDFKz1 (ORCPT + 99 others); Mon, 6 Apr 2020 06:55:27 -0400 Received: from foss.arm.com ([217.140.110.172]:44210 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbgDFKz1 (ORCPT ); Mon, 6 Apr 2020 06:55:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA60230E; Mon, 6 Apr 2020 03:55:26 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CA9A83F52E; Mon, 6 Apr 2020 03:55:25 -0700 (PDT) Date: Mon, 6 Apr 2020 11:55:23 +0100 From: Qais Yousef To: Tejun Heo Cc: Qian Cai , Prateek Sood , Li Zefan , cgroups@vger.kernel.org, LKML , Peter Zijlstra Subject: Re: Deadlock due to "cpuset: Make cpuset hotplug synchronous" Message-ID: <20200406105522.c66p4vzzzylety5d@e107158-lin.cambridge.arm.com> References: <20200325191922.GM162390@mtj.duckdns.org> <20200326101529.xh763j5frq2r7mqv@e107158-lin> <20200403145523.GC162390@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200403145523.GC162390@mtj.duckdns.org> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/03/20 10:55, Tejun Heo wrote: > On Thu, Mar 26, 2020 at 10:15:32AM +0000, Qais Yousef wrote: > > On 03/25/20 15:19, Tejun Heo wrote: > > > On Wed, Mar 25, 2020 at 03:16:56PM -0400, Qian Cai wrote: > > > > The linux-next commit a49e4629b5ed (“cpuset: Make cpuset hotplug synchronous”) > > > > introduced real deadlocks with CPU hotplug as showed in the lockdep splat, since it is > > > > now making a relation from cpu_hotplug_lock —> cgroup_mutex. > > > > > > Prateek, can you please take a look? Given that the merge window is just around > > > the corner, we might have to revert and retry later if it can't be resolved > > > quickly. > > > > I've ran cpuset_hotplug and cpuhotplug LTP tests using next-20200325 but > > couldn't reproduce it. > > > > Hopefully that can be fixed, but if you had to revert it, do you mind picking > > this instead to fix the LTP issue I encountered before? > > > > https://lore.kernel.org/lkml/20200211141554.24181-1-qais.yousef@arm.com/ > > So, I'd rather not, for now anyway. It isn't a real problem and I don't wanna > add a wait vector there. What would be the right approach to get a fix in then? We have been skipping this test for a while and we'd like to enable it but this failure is a blocking issue. Android relies on cpuset and some devices use hotplug to manage thermal/power. So it's an interesting combination to be able to test for us. Thanks -- Qais Yousef