From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754565AbdHVGU0 (ORCPT ); Tue, 22 Aug 2017 02:20:26 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40241 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751384AbdHVGUZ (ORCPT ); Tue, 22 Aug 2017 02:20:25 -0400 Date: Mon, 21 Aug 2017 23:20:22 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Mathieu Desnoyers , linux-kernel@vger.kernel.org, Boqun Feng , Andrew Hunter , Maged Michael , gromer@google.com, Avi Kivity , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Dave Watson Subject: Re: [PATCH v2] membarrier: Document scheduler barrier requirements Reply-To: paulmck@linux.vnet.ibm.com References: <20170819043916.18725-1-mathieu.desnoyers@efficios.com> <20170821084236.hsxtqtmsno7aqnls@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170821084236.hsxtqtmsno7aqnls@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17082206-0024-0000-0000-000002C30FC8 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007589; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000223; SDB=6.00905882; UDB=6.00453982; IPR=6.00686085; BA=6.00005547; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016804; XFM=3.00000015; UTC=2017-08-22 06:20:22 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17082206-0025-0000-0000-0000452C6CFF Message-Id: <20170822062022.GZ11320@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-22_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708220098 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 21, 2017 at 10:42:36AM +0200, Peter Zijlstra wrote: > On Fri, Aug 18, 2017 at 09:39:16PM -0700, Mathieu Desnoyers wrote: > > @@ -3295,6 +3301,9 @@ static void __sched notrace __schedule(bool preempt) > > * Make sure that signal_pending_state()->signal_pending() below > > * can't be reordered with __set_current_state(TASK_INTERRUPTIBLE) > > * done by the caller to avoid the race with signal_wake_up(). > > + * > > + * The membarrier system call requires a full memory barrier > > + * after coming from user-space, before storing to rq->curr. > > */ > > smp_mb__before_spinlock(); > > rq_lock(rq, &rf); > > Merge conflict here, current tip is over to smp_mb__after_spinlock(). Would some tree other than -rcu be better for that commit? Thanx, Paul