]> err.no Git - linux-2.6/commit
[PATCH] bio_clone fix
authorAndrew Morton <akpm@osdl.org>
Thu, 28 Jul 2005 08:07:18 +0000 (01:07 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 28 Jul 2005 15:38:59 +0000 (08:38 -0700)
commita5453be48e8def75a9c1b2177b82fa0e692c6e3a
treec1d224f0fb4db22e87567e1eea45001a7b11e51f
parent577a4f8102d54b504cb22eb021b89e957e8df18f
[PATCH] bio_clone fix

Fix bug introduced in 2.6.11-rc2: when we clone a BIO we need to copy over the
current index into it as well.

It corrupts data with some MD setups.

See http://bugzilla.kernel.org/show_bug.cgi?id=4946

Huuuuuuuuge thanks to Matthew Stapleton <matthew4196@gmail.com> for doggedly
chasing this one down.

Acked-by: Jens Axboe <axboe@suse.de>
Cc: <linux-raid@vger.kernel.org>
Cc: <dm-devel@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/bio.c