]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit88d16e5f2bee0b6161cafae061f09237ae9b734c
tree4488efc87514d440f5ca4b9fdca32dd173a04f63
parent16300f83818ec8fa5a788c80f4aec4f108459f5c
[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