Re: [PATCH -next] PCI: Use GFP_ATOMIC in resource_alignment_store()

2019-09-05 Thread Bjorn Helgaas
On Tue, Sep 03, 2019 at 09:51:05AM -0600, Logan Gunthorpe wrote: > > > On 2019-09-02 1:50 a.m., Christoph Hellwig wrote: > > On Sat, Aug 31, 2019 at 12:49:32PM +, YueHaibing wrote: > >> When allocating memory, the GFP_KERNEL cannot be used during the > >> spin_lock period. It may cause schedu

Re: [PATCH -next] PCI: Use GFP_ATOMIC in resource_alignment_store()

2019-09-03 Thread Logan Gunthorpe
On 2019-09-02 1:50 a.m., Christoph Hellwig wrote: > On Sat, Aug 31, 2019 at 12:49:32PM +, YueHaibing wrote: >> When allocating memory, the GFP_KERNEL cannot be used during the >> spin_lock period. It may cause scheduling when holding spin_lock. >> >> Fixes: f13755318675 ("PCI: Move pci_[get|

Re: [PATCH -next] PCI: Use GFP_ATOMIC in resource_alignment_store()

2019-09-02 Thread Christoph Hellwig
On Sat, Aug 31, 2019 at 12:49:32PM +, YueHaibing wrote: > When allocating memory, the GFP_KERNEL cannot be used during the > spin_lock period. It may cause scheduling when holding spin_lock. > > Fixes: f13755318675 ("PCI: Move pci_[get|set]_resource_alignment_param() into > their callers") >

[PATCH -next] PCI: Use GFP_ATOMIC in resource_alignment_store()

2019-08-31 Thread YueHaibing
When allocating memory, the GFP_KERNEL cannot be used during the spin_lock period. It may cause scheduling when holding spin_lock. Fixes: f13755318675 ("PCI: Move pci_[get|set]_resource_alignment_param() into their callers") Signed-off-by: YueHaibing --- drivers/pci/pci.c | 2 +- 1 file changed