[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1905291410300.242480@chino.kir.corp.google.com>
Date: Wed, 29 May 2019 14:11:46 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Christoph Hellwig <hch@...radead.org>
cc: Hariprasad Kelam <hariprasad.kelam@...il.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wd719x: pass GFP_ATOMIC instead of GFP_KERNEL
On Tue, 28 May 2019, Christoph Hellwig wrote:
> > wd719x_chip_init is getting called in interrupt disabled
> > mode(spin_lock_irqsave) , so we need to GFP_ATOMIC instead
> > of GFP_KERNEL.
> >
> > Issue identified by coccicheck
>
> I don't think request_firmware is any more happy being called under
> a spinlock. The right fix is to not hold a spinlock over the board
> initialization.
>
Right, and not even wd719x_chip_init() is always called in this context
otherwise wd719x_board_found() would also need the same change.
Powered by blists - more mailing lists