From: "Jan Beulich" Subject: Re: [PATCH] console: allocate ring buffer earlier Date: Mon, 08 Dec 2014 08:54:08 +0000 Message-ID: <54857540020000780004D9DC@mail.emea.novell.com> References: <5481F18C020000780004D535@mail.emea.novell.com> <20141205172257.GC16236@olila.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xxu56-0002Ur-Qk for xen-devel@lists.xenproject.org; Mon, 08 Dec 2014 08:54:12 +0000 In-Reply-To: <20141205172257.GC16236@olila.local.net-space.pl> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: Keir Fraser , Ian Jackson , Tim Deegan , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 05.12.14 at 18:22, wrote: > On Fri, Dec 05, 2014 at 04:55:24PM +0000, Jan Beulich wrote: >> @@ -763,17 +762,28 @@ void __init console_init_postirq(void) >> } >> opt_conring_size = PAGE_SIZE << order; >> >> - spin_lock_irq(&console_lock); >> + spin_lock_irqsave(&console_lock, flags); > > I am not sure why are you change spin_lock_irq() to spin_lock_irqsave() > here. > Could you explain this in commit message? I think this is quite obvious in the context here: Previously this was guaranteed to be called after interrupts were already enabled (hence the _postirq name). That's not the case anymore, and thus we can't blindly enable interrupts when releasing the lock. Jan