Re: [PATCH for-rc 1/5] IB/hfi1: Fix WQ_MEM_RECLAIM warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Wed, Mar 27, 2019 at 02:16:11PM -0300, Jason Gunthorpe wrote:
> So, is it OK for a WQ entry on a WQ_MEM_RECLAIM queue to call
> kmalloc(GFP_KERNEL) ?

In most cases, you can answer these questions by mapping them to a
block device driver.  A block device driver which performs GFP_KERNEL
allocation on IO path may cause a deadlock.  If the workqueue is
sitting in a path which can be depended upon for memory reclaim IOs,
the same applies to the workqueue.

Thanks.

-- 
tejun



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux