[PATCH] dm: bio split bvec fix
authorAlasdair G Kergon <agk@redhat.com>
Wed, 22 Mar 2006 08:07:42 +0000 (00:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:53:55 +0000 (07:53 -0800)
commitd2044a94e80b61f68ee7456f82d9b443e9ff6ac7
tree4488efc87514d440f5ca4b9fdca32dd173a04f63
parent06f9d4f94a075285d25253edbf57f2cda07d4ff3
[PATCH] dm: bio split bvec fix

The code that handles bios that span table target boundaries by breaking
them up into smaller bios will not split an individual struct bio_vec into
more than two pieces.  Sometimes more than that are required.

This patch adds a loop to break the second piece up into as many pieces as
are necessary.

Cc: "Abhishek Gupta" <abhishekgupt@gmail.com>
Cc: Dan Smith <danms@us.ibm.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm.c