commit | 20c82538e4f5ede51bc2b4795bc6e5cae772796d | [log] [tgz] |
---|---|---|
author | Milan Broz <mbroz@redhat.com> | Thu Jan 13 19:59:53 2011 +0000 |
committer | Alasdair G Kergon <agk@redhat.com> | Thu Jan 13 19:59:53 2011 +0000 |
tree | a70248a06b21bf249382d6f6beac4b8681bf8f35 | |
parent | c029772125594e31eb1a5ad9e0913724ed9891f2 [diff] |
dm crypt: use io thread for reads only if mempool exhausted If there is enough memory, code can directly submit bio instead queing this operation in separate thread. Try to alloc bio clone with GFP_NOWAIT and only if it fails use separate queue (map function cannot block here). Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>