• T
    fs/aio: aio_wq isn't used in memory reclaim path · d37adaa1
    Tejun Heo 提交于
    aio_wq isn't used during memory reclaim.  Convert to alloc_workqueue()
    without WQ_MEM_RECLAIM.  It's possible to use system_wq but given that
    the number of work items is determined from userland and the work item
    may block, enforcing strict concurrency limit would be a good idea.
    
    Also, move fput_work to system_wq so that aio_wq is used soley to
    throttle the max concurrency of aio work items and fput_work doesn't
    interact with other work items.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Acked-by: NJeff Moyer <jmoyer@redhat.com>
    Cc: Benjamin LaHaise <bcrl@kvack.org>
    Cc: linux-aio@kvack.org
    d37adaa1
aio.c 46.7 KB