From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756214Ab0EaIiN (ORCPT ); Mon, 31 May 2010 04:38:13 -0400 Received: from mtagate3.de.ibm.com ([195.212.17.163]:35516 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757Ab0EaIiL (ORCPT ); Mon, 31 May 2010 04:38:11 -0400 From: Christian Borntraeger Organization: IBM To: Julia Lawall Subject: Re: [PATCH 3/3] arch/s390/kvm: Use GFP_ATOMIC when a lock is held Date: Mon, 31 May 2010 10:38:07 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34-release; KDE/4.4.3; x86_64; ; ) Cc: Carsten Otte , linux390@de.ibm.com, Avi Kivity , Marcelo Tosatti , Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005311038.07755.borntraeger@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The containing function is called from several places. At one of them, in > the function __sigp_stop, the spin lock &fi->lock is held. [...] > Signed-off-by: Julia Lawall Acked-by: Christian Borntraeger [...] > --- a/arch/s390/kvm/sigp.c > +++ b/arch/s390/kvm/sigp.c > @@ -113,7 +113,7 @@ static int __inject_sigp_stop(struct kvm > { > struct kvm_s390_interrupt_info *inti; > > - inti = kzalloc(sizeof(*inti), GFP_KERNEL); > + inti = kzalloc(sizeof(*inti), GFP_ATOMIC); > if (!inti) > return -ENOMEM; > inti->type = KVM_S390_SIGP_STOP;