diff options
| -rw-r--r-- | drivers/md/bcache/io.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/md/bcache/io.c b/drivers/md/bcache/io.c index f565512f6fac..b4c0e28a7cd1 100644 --- a/drivers/md/bcache/io.c +++ b/drivers/md/bcache/io.c | |||
| @@ -38,6 +38,15 @@ static void bch_generic_make_request_hack(struct bio *bio) | |||
| 38 | bio = clone; | 38 | bio = clone; |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | /* | ||
| 42 | * Hack, since drivers that clone bios clone up to bi_max_vecs, but our | ||
| 43 | * bios might have had more than that (before we split them per device | ||
| 44 | * limitations). | ||
| 45 | * | ||
| 46 | * To be taken out once immutable bvec stuff is in. | ||
| 47 | */ | ||
| 48 | bio->bi_max_vecs = bio->bi_vcnt; | ||
| 49 | |||
| 41 | generic_make_request(bio); | 50 | generic_make_request(bio); |
| 42 | } | 51 | } |
| 43 | 52 | ||
