diff options
author | Andrew Morton <akpm@osdl.org> | 2005-07-28 11:02:26 -0700 |
---|---|---|
committer | Chris Wright <chrisw@osdl.org> | 2005-08-05 00:04:22 -0700 |
commit | 60372783e59079bdfd3ba0477e1907669249a489 (patch) | |
tree | 7c179ebe67be1669ee0cdd292461dc04380ff20a /fs/bio.c | |
parent | e7cd6bfe6c56856eecb79a8cfd3d60599a8b280f (diff) |
[PATCH] Fw: [PATCH] bio_clone fix
[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>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -261,6 +261,7 @@ inline void __bio_clone(struct bio *bio, struct bio *bio_src) */ bio->bi_vcnt = bio_src->bi_vcnt; bio->bi_size = bio_src->bi_size; + bio->bi_idx = bio_src->bi_idx; bio_phys_segments(q, bio); bio_hw_segments(q, bio); } |