]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
async_tx: use GFP_NOWAIT rather than GFP_IO
authorNeilBrown <neilb@suse.com>
Thu, 7 Jan 2016 00:02:34 +0000 (11:02 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:06:48 +0000 (15:06 -0800)
commit3e71a1817e2882753b83fbb4cff8e60b88fb0e0d
treeb6a93c585bade3f793a5c3a4e1c427bc712a372d
parent194770bb72f1c59c7f0872635a30dde361c9dfc7
async_tx: use GFP_NOWAIT rather than GFP_IO

commit b02bab6b0f928d49dbfb03e1e4e9dd43647623d7 upstream.

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: 7476bd79fc01 ("async_pq: convert to dmaengine_unmap_data")
Reported-and-tested-by: Stanislav Samsonov <slava@annapurnalabs.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/async_tx/async_memcpy.c
crypto/async_tx/async_pq.c
crypto/async_tx/async_raid6_recov.c
crypto/async_tx/async_xor.c