mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
These async_XX functions are called from md/raid5 in an atomic
section, between get_cpu() and put_cpu(), so they must not sleep.
So use GFP_NOWAIT rather than GFP_IO.
Dan Williams writes: Longer term async_tx needs to be merged into md
directly as we can allocate this unmap data statically per-stripe
rather than per request.
Fixed: 7476bd79fc ("async_pq: convert to dmaengine_unmap_data")
Cc: [email protected] (v3.13+)
Reported-and-tested-by: Stanislav Samsonov <[email protected]>
Acked-by: Dan Williams <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>