Commit bca97ada authored by Kent Overstreet's avatar Kent Overstreet

bcache: Hack around stuff that clones up to bi_max_vecs

Signed-off-by: default avatarKent Overstreet <koverstreet@google.com>
parent 4f0fd955
...@@ -38,6 +38,15 @@ static void bch_generic_make_request_hack(struct bio *bio) ...@@ -38,6 +38,15 @@ static void bch_generic_make_request_hack(struct bio *bio)
bio = clone; 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); generic_make_request(bio);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment