Message ID | 1380220464-28840-4-git-send-email-john.stultz@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBCJ7RPMX4EMBBXH4SGJAKGQEQ3RR2UI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E36F23A4E for <linaro@patches.linaro.org>; Thu, 26 Sep 2013 18:35:08 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id db12sf1414944veb.2 for <linaro@patches.linaro.org>; Thu, 26 Sep 2013 11:35:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=/GvrccHhkokBSuVEIJ7kmaIjDEgew1rpWGxeOS1fokA=; b=GRsCM+7ATbiYiFbYX9d1MubPMy4yp47toclvSOpE15SvnqfsyfTmF9dpaIlz6R/sfR d/TaPzZ5+gD/bTywRogJe2mP+DBdhvIzbdyVNvR2VIhYG6h+60VJtiC4171rV9wxJ9Gv vgiF+KV1jvZ9jefJTvSl0OFFlQ3Ashq1Q9WGn566nASa54e4uyEsY9b2ulSvwTC7OSJT MG1RDq3VHzALJK+6jD1IRjOO0bCFaqwOO6BoSOhtYqSgrvxWV8D427hXAVoUQ9KPMnHx bogvkDm4fRcJw61U9D2brLlCgxtSf33Q1Z+iuW3ufV2u7eIgsmuT00AexBNvfjblwkAg Lvxg== X-Gm-Message-State: ALoCoQl4F74Y1mjz++WQIjk6xXk8umvHXCfxzPh5cQz9xwFZJTfoAmCq4++sbnq9PCYNKGn64Rg4 X-Received: by 10.58.143.52 with SMTP id sb20mr228195veb.7.1380220508238; Thu, 26 Sep 2013 11:35:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.230 with SMTP id d6ls1140165qey.93.gmail; Thu, 26 Sep 2013 11:35:08 -0700 (PDT) X-Received: by 10.59.11.69 with SMTP id eg5mr1898396ved.17.1380220507941; Thu, 26 Sep 2013 11:35:07 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id gq10si741724vdc.56.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 11:35:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id oy12so1244764veb.13 for <patchwork-forward@linaro.org>; Thu, 26 Sep 2013 11:34:37 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr1940924vcb.4.1380220477817; Thu, 26 Sep 2013 11:34:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp382480vcz; Thu, 26 Sep 2013 11:34:37 -0700 (PDT) X-Received: by 10.66.216.129 with SMTP id oq1mr7044310pac.75.1380220476921; Thu, 26 Sep 2013 11:34:36 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id ei3si2509527pbc.200.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 11:34:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id kq14so1671805pab.26 for <patches@linaro.org>; Thu, 26 Sep 2013 11:34:36 -0700 (PDT) X-Received: by 10.67.21.226 with SMTP id hn2mr7003056pad.69.1380220476491; Thu, 26 Sep 2013 11:34:36 -0700 (PDT) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id 7sm6824283paf.22.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 11:34:35 -0700 (PDT) From: John Stultz <john.stultz@linaro.org> To: LKML <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Li Zefan <lizefan@huawei.com>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Steven Rostedt <rostedt@goodmis.org>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH 3/4] [RFC] cpuset: Fix potential deadlock w/ set_mems_allowed Date: Thu, 26 Sep 2013 11:34:23 -0700 Message-Id: <1380220464-28840-4-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1380220464-28840-1-git-send-email-john.stultz@linaro.org> References: <1380220464-28840-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index cc1b01c..3fe661f 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h @@ -110,10 +110,14 @@ static inline bool put_mems_allowed(unsigned int seq) static inline void set_mems_allowed(nodemask_t nodemask) { + unsigned long flags; + task_lock(current); + local_irq_save(flags); write_seqcount_begin(¤t->mems_allowed_seq); current->mems_allowed = nodemask; write_seqcount_end(¤t->mems_allowed_seq); + local_irq_restore(flags); task_unlock(current); }