Received: by 10.223.164.221 with SMTP id h29csp1557123wrb; Wed, 25 Oct 2017 02:32:53 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QKYYvwAd1IEG8jDaKEsINRdhk+pEv35MATnTOPrTbdrIFj2OX24hG/to1TXvHqfUE/3xja X-Received: by 10.98.163.193 with SMTP id q62mr1622484pfl.276.1508923973744; Wed, 25 Oct 2017 02:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508923973; cv=none; d=google.com; s=arc-20160816; b=09ADCkcLO0djH/QeHHQrVGRLP2qn6oXIVrcQUe+QoIpVP+pCgKRN8R02X8MKHmbQPr 67M4K5lEHXrZoUheYc9+TjoqgEXJ/qfkcSFRnphwlVJCWlvJtujoU2hjoF1sJ9CCkiyN EKUtNCMdskduwjLr6CrbmYPVQNjm73pfZ69y+jVcJRs6MygjdU+xK4ouJp/FmG3BG61K uKy2HdlJM6ghqkacZnyVS8g/suF0EXDtvk5IujRskH6jI7339w9LWrcap1OaXfCW98C7 Kt0usLXLDZITR2Mu8yl/oaeKU1CVw8U6BlLnYoO9yp7cucRTRTxZA6k0DkKM71uld1T7 DtDg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=SrNaMVjtczdVKvWrJ/Ke5gPNt3W6mWQUMRAc3dUaCZA=; b=S3xt59zhQFO+knIZUBDkcFClzvOO96/qkH0mHS4hWdcSTxEkPNpn1RniJtEAE2OacB kQEI+xm+Y6ICyk5De5Wv0zr928eYtp+WpVLhUCFvojNF0PUvgwQpnOmKztvnmO8jmIp6 uv+gngWpTP80ZJsIGmOw82S9MDUfyxrWNStLn20gEvAD6nykWlsI7rxRJdg2XluROfhK JdzUnsaZfIQu3VGVzv1APB7SuOpeZHp4s0PlsVAfZyD+igcxl6IE0PU0a8Wp00E+JS30 YeopLG4TlABcs/XouLg1qlVdTefraMARuzLD7LLLIySpY7RuZQb2juEeEv/wvPBnZfS9 LPGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xIeOqHUQ; 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 r1si1387226plb.99.2017.10.25.02.32.40; Wed, 25 Oct 2017 02:32:53 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xIeOqHUQ; 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 S932438AbdJYJbC (ORCPT + 99 others); Wed, 25 Oct 2017 05:31:02 -0400 Received: from merlin.infradead.org ([205.233.59.134]:52266 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932280AbdJYJa6 (ORCPT ); Wed, 25 Oct 2017 05:30:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SrNaMVjtczdVKvWrJ/Ke5gPNt3W6mWQUMRAc3dUaCZA=; b=xIeOqHUQXj5K9jbHlQsFNlMsV 4TgfqCpEu4xY/5HsUWTCJ49iS8l+mDwHLkRDVCFP3nU5ouYvid0sb7IVNakPX4sKMswIV7j9N2P5G ga1cm32S5g0yFYKtZEfZkKP174LsVr18JMNcKjyQWOtZ2544VEywMBcluzNhrTGm49fP5lHlZQXYf u+s5jIcTng1WhdyKHYGhHemG8+1l/biTVy6CaiTg9wl4vbezGIOLKdRjdplGOjtKZM51pfR22xSsS hejFUy+YBsVu0s5Ky7LxZdnWn51215QYrHhPQZpPJJfJMf6Wz3KQXhwOSqpGEYCrXIXDS9UfPl0zx eSxYN3lNQ==; Received: from [62.168.35.105] (helo=worktop) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1e7I1O-00079R-7j; Wed, 25 Oct 2017 09:30:46 +0000 Received: by worktop (Postfix, from userid 1000) id 236266E0761; Wed, 25 Oct 2017 11:30:41 +0200 (CEST) Date: Wed, 25 Oct 2017 11:30:41 +0200 From: Peter Zijlstra To: Prateek Sood Cc: tj@kernel.org, lizefan@huawei.com, cgroups@vger.kernel.org, mingo@kernel.org, longman@redhat.com, boqun.feng@gmail.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, sramana@codeaurora.org Subject: Re: [PATCH] cgroup/cpuset: remove circular dependency deadlock Message-ID: <20171025093041.GO3165@worktop.lehotels.local> References: <1504792583-10424-1-git-send-email-prsood@codeaurora.org> <20170907175107.GG17526@worktop.programming.kicks-ass.net> <4668d1ec-dc43-8a9c-4f94-a421683d3c17@codeaurora.org> <20171011094833.pdp4torvotvjdmkt@hirez.programming.kicks-ass.net> <00043e79-3647-3979-07bb-27039921efb4@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00043e79-3647-3979-07bb-27039921efb4@codeaurora.org> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 25, 2017 at 02:09:54PM +0530, Prateek Sood wrote: > > void cpuset_update_active_cpus(void) > > { > > + mutex_lock(&cpuset_mutex); > > + rebuild_sched_domains_cpuslocked(); > > + mutex_unlock(&cpuset_mutex); > > } > > In the above patch rebuild_sched_domains_cpuslocked() has been > used directly. Earlier cpuset_hotplug_update_tasks() was also > called from cpuset_hotplug_workfn(). So migration of tasks > related to cgroup which has empty cpuset would not happen > during cpu hotplug. > > > Could you please help in understanding more on this. > That was me being lazy... From 1582218194039378046@xxx Wed Oct 25 08:40:54 +0000 2017 X-GM-THRID: 1577859769769316492 X-Gmail-Labels: Inbox,Category Forums