Skip to content

Commit

Permalink
bcache: Hack around stuff that clones up to bi_max_vecs
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Overstreet <koverstreet@google.com>
  • Loading branch information
Kent Overstreet committed Apr 21, 2013
1 parent 4f0fd95 commit bca97ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/md/bcache/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ static void bch_generic_make_request_hack(struct bio *bio)
bio = clone;
}

/*
* Hack, since drivers that clone bios clone up to bi_max_vecs, but our
* bios might have had more than that (before we split them per device
* limitations).
*
* To be taken out once immutable bvec stuff is in.
*/
bio->bi_max_vecs = bio->bi_vcnt;

generic_make_request(bio);
}

Expand Down

0 comments on commit bca97ad

Please sign in to comment.