From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Date: Mon, 08 Sep 2014 11:30:05 +0000 Subject: Re: [Xen-devel] [patch] xen-scsifront: use GFP_ATOMIC under spin_lock Message-Id: <540D933D.9020809@suse.com> List-Id: References: <20140908111542.GA6947@mwanda> In-Reply-To: <20140908111542.GA6947@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, "James E.J. Bottomley" , David Vrabel , xen-devel@lists.xenproject.org, Boris Ostrovsky On 09/08/2014 01:15 PM, Dan Carpenter wrote: > This function is only called with a spin_lock held and IRQs disabled. > The allocation is not allowed to sleep and NOIO is not sufficient, it > has to be ATOMIC. > > Signed-off-by: Dan Carpenter Reviewed-by: Juergen Gross Thanks, Juergen > > diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c > index 0aceb70..7e88659 100644 > --- a/drivers/scsi/xen-scsifront.c > +++ b/drivers/scsi/xen-scsifront.c > @@ -359,7 +359,7 @@ static int map_data_for_request(struct vscsifrnt_info *info, > } > seg_grants = vscsiif_grants_sg(data_grants); > shadow->sg = kcalloc(data_grants, > - sizeof(struct scsiif_request_segment), GFP_NOIO); > + sizeof(struct scsiif_request_segment), GFP_ATOMIC); > if (!shadow->sg) > return -ENOMEM; > } > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [Xen-devel] [patch] xen-scsifront: use GFP_ATOMIC under spin_lock Date: Mon, 08 Sep 2014 13:30:05 +0200 Message-ID: <540D933D.9020809@suse.com> References: <20140908111542.GA6947@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140908111542.GA6947@mwanda> Sender: kernel-janitors-owner@vger.kernel.org To: Dan Carpenter Cc: linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, "James E.J. Bottomley" , David Vrabel , xen-devel@lists.xenproject.org, Boris Ostrovsky List-Id: linux-scsi@vger.kernel.org On 09/08/2014 01:15 PM, Dan Carpenter wrote: > This function is only called with a spin_lock held and IRQs disabled. > The allocation is not allowed to sleep and NOIO is not sufficient, it > has to be ATOMIC. > > Signed-off-by: Dan Carpenter Reviewed-by: Juergen Gross Thanks, Juergen > > diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c > index 0aceb70..7e88659 100644 > --- a/drivers/scsi/xen-scsifront.c > +++ b/drivers/scsi/xen-scsifront.c > @@ -359,7 +359,7 @@ static int map_data_for_request(struct vscsifrnt_info *info, > } > seg_grants = vscsiif_grants_sg(data_grants); > shadow->sg = kcalloc(data_grants, > - sizeof(struct scsiif_request_segment), GFP_NOIO); > + sizeof(struct scsiif_request_segment), GFP_ATOMIC); > if (!shadow->sg) > return -ENOMEM; > } > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >