Mikulas Patocka dc2676210c dm crypt: offload writes to thread
Submitting write bios directly in the encryption thread caused serious
performance degradation.  On a multiprocessor machine, encryption requests
finish in a different order than they were submitted.  Consequently, write
requests would be submitted in a different order and it could cause severe
performance degradation.

Move the submission of write requests to a separate thread so that the
requests can be sorted before submitting.  But this commit improves
dm-crypt performance even without having dm-crypt perform request
sorting (in particular it enables IO schedulers like CFQ to sort more
effectively).

Note: it is required that a previous commit ("dm crypt: don't allocate
pages for a partial request") be applied before applying this patch.
Otherwise, this commit could introduce a crash.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2015-02-16 11:11:14 -05:00
..
2015-01-18 00:28:41 -05:00
2015-01-23 14:08:13 -08:00
2015-02-11 18:03:54 -08:00
2014-12-14 16:10:09 -08:00
2015-02-11 18:03:54 -08:00
2015-02-11 08:51:59 -08:00
2014-12-14 16:10:09 -08:00
2015-02-10 11:35:36 -08:00
2015-02-12 09:16:56 -08:00
2015-02-16 11:11:14 -05:00
2015-02-11 18:15:38 -08:00
2015-01-28 11:09:20 -07:00
2015-02-04 09:15:18 +01:00
2015-02-12 08:58:43 -08:00
2015-02-11 10:28:45 -08:00
2014-12-17 10:10:51 -08:00
2015-01-29 10:17:56 +02:00
2014-12-14 16:43:47 -08:00
2014-12-14 16:43:47 -08:00
2015-02-11 10:28:45 -08:00