dm crypt: add post processing queue
authorMilan Broz <mbroz@redhat.com>
Fri, 19 Oct 2007 21:38:58 +0000 (22:38 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 20 Oct 2007 01:01:14 +0000 (02:01 +0100)
commitcabf08e4d3d1181d7c408edae97fb4d1c31518af
treeb931cc050b8294a6f04790683e191e324268bad6
parent9934a8bea2fc67e6f07d74304eca2a91d251bfe8
dm crypt: add post processing queue

Add post-processing queue (per crypt device) for read operations.

Current implementation uses only one queue for all operations
and this can lead to starvation caused by many requests waiting
for memory allocation. But the needed memory-releasing operation
is queued after these requests (in the same queue).

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c