From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Borntraeger Date: Mon, 31 May 2010 08:38:07 +0000 Subject: Re: [PATCH 3/3] arch/s390/kvm: Use GFP_ATOMIC when a lock is held Message-Id: <201005311038.07755.borntraeger@de.ibm.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall 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 > 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;