OSDN Git Service

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)
commit0f5d8e6ee758f7023e4353cca75d785b2d4f6abe
tree836041a22c3b5f5eb6151f27b7b0dec1714ac5fd
parentdc2676210c425ee8e5cb1bec5bc84d004ddf4179
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