]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: add 'submit_from_crypt_cpus' option
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 13 Feb 2015 13:27:08 +0000 (08:27 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 16 Feb 2015 16:11:15 +0000 (11:11 -0500)
commita1d31e54ad4a1353119f3f41679a0db53f8c0812
tree836041a22c3b5f5eb6151f27b7b0dec1714ac5fd
parent983035f79c0711376656c07db66f8a547b372b33
dm crypt: add 'submit_from_crypt_cpus' option

Make it possible to disable offloading writes by setting the optional
'submit_from_crypt_cpus' table argument.

There are some situations where offloading write bios from the
encryption threads to a single thread degrades performance
significantly.

The default is to offload write bios to the same thread because it
benefits CFQ to have writes submitted using the same IO context.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-crypt.txt
drivers/md/dm-crypt.c