Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751312AbaDRHuU (ORCPT ); Fri, 18 Apr 2014 03:50:20 -0400 Received: from mail.ispras.ru ([83.149.199.45]:57272 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbaDRHuR (ORCPT ); Fri, 18 Apr 2014 03:50:17 -0400 Message-ID: <5350D934.706@ispras.ru> Date: Fri, 18 Apr 2014 00:50:12 -0700 From: Alexey Khoroshilov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Anil Gurumurthy , Sudarsana Kalluru CC: "James E.J. Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] [SCSI] bfa: allocate memory with GFP_ATOMIC in spinlock context References: <1397805949-20502-1-git-send-email-khoroshilov@ispras.ru> In-Reply-To: <1397805949-20502-1-git-send-email-khoroshilov@ispras.ru> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please ignore this patch, it will resend a correct version of it. On 18.04.2014 00:25, Alexey Khoroshilov wrote: > bfa_fcb_pbc_vport_create() is called only from bfa_fcs_pbc_vport_init(), > that is called only from bfad_drv_start() with bfad_lock spinlock held. > So the patch replaces GFP_KERNEL with GFP_ATOMIC to avoid > sleeping in atomic spinlock context. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- > drivers/scsi/bfa/bfad.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c > index cc0fbcdc5192..8f46d1b72fb8 100644 > --- a/drivers/scsi/bfa/bfad.c > +++ b/drivers/scsi/bfa/bfad.c > @@ -652,7 +652,7 @@ bfad_vport_create(struct bfad_s *bfad, u16 vf_id, > unsigned long flags; > struct completion fcomp; > > - vport = kzalloc(sizeof(struct bfad_vport_s), GFP_KERNEL); > + vport = kzalloc(sizeof(struct bfad_vport_s), GFP_ATOMIC); > if (!vport) { > rc = BFA_STATUS_ENOMEM; > goto ext; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/