From: Daniel Kiper Subject: Re: [PATCH] kexec: don't disable interrupts when acquiring load/unload lock Date: Wed, 6 Nov 2013 15:53:01 +0100 Message-ID: <20131106145301.GK15538@olila.local.net-space.pl> References: <527A428E0200007800100156@nat28.tlf.novell.com> 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 1Ve4Tp-0004dx-IO for xen-devel@lists.xenproject.org; Wed, 06 Nov 2013 14:53:13 +0000 Content-Disposition: inline In-Reply-To: <527A428E0200007800100156@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Keir Fraser , David Vrabel List-Id: xen-devel@lists.xenproject.org On Wed, Nov 06, 2013 at 12:22:22PM +0000, Jan Beulich wrote: > This doesn't appear to have served any purpose other than causing > map_pages_to_xen() to be (incorrectly) invoked with interrupts > disabled. In particular, serialization against actual kexec-ing is done > without this lock being involved. Clarify the scope of the lock at once > by making it local to do_kexec_op_internal(). > > Once at it, also drop a pointless initializer. > > Signed-off-by: Jan Beulich Reviewed-by: Daniel Kiper Daniel