]> err.no Git - linux-2.6/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)
commit23541d2d288cdb54f417ba1001dacc7f3ea10a97
treec338a829548fd1baa730acf6e466f8bfd4bef474
parent93e605c237a61f5a0ea37b12353392f01d596628
[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