[PATCH] md: fix splitting of md/linear request that cross a device boundary
authorNeilBrown <neilb@cse.unsw.edu.au>
Tue, 17 May 2005 04:53:15 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:11 +0000 (07:59 -0700)
commit29ac8e056f2016a8404edc02749d095019aa1f82
treee397738144d80b3c3d78edde36ab739892f4d3dc
parent8f332287bc3f2801ba43682fd79baf24dc8ac1ce
[PATCH] md: fix splitting of md/linear request that cross a device boundary

When a request crosses a boundary between devices, it needs to be split.
But where we should calculate the amount of the request before the boundary
to find the split-point, we care currently calculating the amount that is
*after* the boundary !!!

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/linear.c