Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbaGaSuf (ORCPT ); Thu, 31 Jul 2014 14:50:35 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:63677 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbaGaSuc (ORCPT ); Thu, 31 Jul 2014 14:50:32 -0400 MIME-Version: 1.0 In-Reply-To: <20140731184729.GA12296@localhost.localdomain> References: <20140728173723.GA20993@redhat.com> <20140728185803.GA24663@redhat.com> <20140728192209.GA26017@localhost.localdomain> <20140729175414.GA3289@redhat.com> <20140730163516.GC18158@localhost.localdomain> <20140730174630.GA30862@redhat.com> <20140731003034.GA32078@localhost.localdomain> <20140731160353.GA14772@redhat.com> <20140731171329.GD7842@localhost.localdomain> <20140731181230.GA18695@redhat.com> <20140731184729.GA12296@localhost.localdomain> Date: Thu, 31 Jul 2014 20:50:29 +0200 Message-ID: Subject: Re: TIF_NOHZ can escape nonhz mask? (Was: [PATCH v3 6/8] x86: Split syscall_trace_enter into two phases) From: Frederic Weisbecker To: Oleg Nesterov Cc: Andy Lutomirski , "Paul E. McKenney" , LKML , Kees Cook , Will Drewry , "the arch/x86 maintainers" , "" , Linux MIPS Mailing List , "linux-arch@vger.kernel.org" , LSM List , Alexei Starovoitov , "H. Peter Anvin" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2014-07-31 20:47 GMT+02:00 Frederic Weisbecker : > On Thu, Jul 31, 2014 at 08:12:30PM +0200, Oleg Nesterov wrote: >> On 07/31, Frederic Weisbecker wrote: > No, because preempt_schedule_irq() does the ctx_state save and restore with > exception_enter/exception_exit. Similar thing happens with schedule_user(). preempt_schedule_irq() handles kernel preemption and schedule_user() the user preemption. On both cases we save and restore the context tracking state. This might be the missing piece you were missing :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/