From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757608AbaKTK2k (ORCPT ); Thu, 20 Nov 2014 05:28:40 -0500 Received: from mail.skyhub.de ([78.46.96.112]:50285 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757033AbaKTK2i (ORCPT ); Thu, 20 Nov 2014 05:28:38 -0500 Date: Thu, 20 Nov 2014 11:28:36 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Linus Torvalds , Andi Kleen , the arch/x86 maintainers , Linux Kernel Mailing List , Peter Zijlstra , Oleg Nesterov , Tony Luck Subject: Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep Message-ID: <20141120102836.GB791@pd.tnic> References: <20141119192928.GL12538@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 19, 2014 at 04:46:29PM -0800, Andy Lutomirski wrote: > So we'd do, in do_machine_check: > > irq_enter(); > > do atomic stuff; > > ist_stop_being_atomic(regs); > local_irq_enable(); > ... > local_irq_disable(); > ist_start_being_atomic_again(); Well, why would I want to go atomic again? We just do the minimally needed atomic stuff, irq_exit() and then do the rest. > > irq_exit(); -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --