]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] dm crypt: move io to workqueue
authorMilan Broz <mbroz@redhat.com>
Tue, 3 Oct 2006 08:15:39 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:16 +0000 (08:04 -0700)
commitd4529eef3b020678ad16edf240190634ced547d1
treec338a829548fd1baa730acf6e466f8bfd4bef474
parent1206d34c12fbd614922bcce302c83ad8c8a22c38
[PATCH] dm crypt: move io to workqueue

This patch is designed to help dm-crypt comply with the
new constraints imposed by the following patch in -mm:
  md-dm-reduce-stack-usage-with-stacked-block-devices.patch

Under low memory the existing implementation relies upon waiting for I/O
submitted recursively to generic_make_request() completing before the original
generic_make_request() call can return.

This patch moves the I/O submission to a workqueue so the original
generic_make_request() can return immediately.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-crypt.c