Received: by 10.223.164.202 with SMTP id h10csp821226wrb; Wed, 15 Nov 2017 08:26:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMY4jQg3ztUCgkQASQspW810P93yexCfwl3d2n+/k36s/Yu9D9Q8BKtdtPyuqx1BFU/uDgyR X-Received: by 10.99.127.87 with SMTP id p23mr15352635pgn.400.1510763189869; Wed, 15 Nov 2017 08:26:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510763189; cv=none; d=google.com; s=arc-20160816; b=eAHeu2punwfKpgjjAwKgagGLmqybtbraWhGE8nD8dXcMWsUw7Eg/Jxt04PJk8IjNYS Sec8XK7o8+ehq1IFD+lTLKJWmpXAASbUtNGOieOZqB7LlJQli3qRzTBeh0lpbCh0yAwY 3duqgWAYJn7TBcAgf2N0B3iWJSf+NPitH2EakIWvZaDyS5y25fkhhNvspyvO1SYt3sEl OjUfIBQuCVLjO1LKSuSn1n4aOgMcduNwnWdSj2DDYsnW99xMxGrdfpRojSnH0ZO+at0w Evj0HxF9cf8e9Ko71AzAa/JQO38gp3gFHzedixO7DpoCRsxN1l46oINQ77QrfBZLlDs9 pVNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=m40wC8dZAV3W/vST+H1F//+fTDDIOPA5wtB2FDwyUZk=; b=eoAXnXlO6d6lxhkHRUHnenkAtCOX/ubpSKs81DhBABpOR7nXZGqLmzbp8Ic3KpQMbP 1NY6/keXenDqVmi1Os8z9oPuEaFXnEjMwtKkUZ7Sjg28CeA8VeV7S8o+xE7LjNwJ6gAy PurnYiL4JSDl86uL9w/zijnGpsyhPFZsYvYc1pvWds9CZ0vH9kNNKs1EiR2xpGcwpTqF O6vFGJdruBUbkPz+3I5RYMhKRNhtieW39V0WVO5geCFkmWwkHbIyPTUNI+wGhYPTLsPe r0LOI8JEqdDlPuHa5lLtuOjOkBN4NiLfQCyTZs7ht8+vQqEwBx5F6YCRHxRuY7JwD2Qb 5rIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=UNkiWb6Y; dkim=pass header.i=@codeaurora.org header.s=default header.b=mSiWKnWw; 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 h123si5461920pgc.417.2017.11.15.08.26.17; Wed, 15 Nov 2017 08:26:29 -0800 (PST) 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=pass header.i=@codeaurora.org header.s=default header.b=UNkiWb6Y; dkim=pass header.i=@codeaurora.org header.s=default header.b=mSiWKnWw; 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 S1755105AbdKOOUy (ORCPT + 89 others); Wed, 15 Nov 2017 09:20:54 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:42018 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbdKOOUs (ORCPT ); Wed, 15 Nov 2017 09:20:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3AECE6071C; Wed, 15 Nov 2017 14:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510755648; bh=YufYL5Nt3v/hT0ZMM5HJUxyjr6YnOVwuX1P39cChDgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UNkiWb6YCo1mCmuzOZwu4sDec2UWu8zNEL1IeKR1qclhT6HK8M9ISEHf40HlwHCi8 ZWm81WS+eOuy8nKVRuBUxbgpilHE24iVH07qzCwA5ygTncK28huvfKydZj0OzxgZka DyyyEtv7qbZCyZV7CssgIPbZndrBlycETSWmhZY8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from prsood-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: prsood@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 29D64601D2; Wed, 15 Nov 2017 14:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510755647; bh=YufYL5Nt3v/hT0ZMM5HJUxyjr6YnOVwuX1P39cChDgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mSiWKnWw0824W+1wf/DnzoJjR2sHrmvx6+kUXXu9tUGbYo0W8rz5WEztKFPHSFWzl jp+02Wsumx29sSg43wHIrYo5Sod2ZDmvTidN1r4EZfBmqyO4M98TLj6dSA7ZbmUnej UpGcTgM3yusK5SWXuBOaLjGaRA+A5K8WBi78YZKM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 29D64601D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=prsood@codeaurora.org From: Prateek Sood To: peterz@infradead.org, longman@redhat.com, tj@kernel.org, lizefan@huawei.com, mingo@kernel.org, boqun.feng@gmail.com, tglx@linutronix.de Cc: cgroups@vger.kernel.org, sramana@codeaurora.org, linux-kernel@vger.kernel.org, clingutla@codeaurora.org, prsood@codeaurora.org Subject: [PATCH v3 0/2] Invert cpu_hotplug_lock and cpuset_mutex locking order. Date: Wed, 15 Nov 2017 19:50:13 +0530 Message-Id: <1510755615-25906-1-git-send-email-prsood@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20171115103742.xt7muaq2dfrs2cyd@hirez.programming.kicks-ass.net> References: <20171115103742.xt7muaq2dfrs2cyd@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch does following 1- Remove circular dependency deadlock by inverting order of cpu_hotplug_lock and cpuset_mutex. 2- Make cpuset_hotplug_workfn() synchronous for cpu hotplug path. For memory hotplug path it still gets queued as a work item. Prateek Sood (2): cgroup/cpuset: remove circular dependency deadlock cpuset: Make cpuset hotplug synchronous include/linux/cpuset.h | 6 ---- kernel/cgroup/cpuset.c | 94 +++++++++++++++++++++++++++----------------------- kernel/power/process.c | 2 -- kernel/sched/core.c | 1 - 4 files changed, 50 insertions(+), 53 deletions(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project. From 1586567689773080915@xxx Tue Dec 12 08:54:16 +0000 2017 X-GM-THRID: 1586567689773080915 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread