projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0fd95
)
bcache: Hack around stuff that clones up to bi_max_vecs
author
Kent Overstreet
<koverstreet@google.com>
Sat, 20 Apr 2013 22:26:31 +0000
(15:26 -0700)
committer
Kent Overstreet
<koverstreet@google.com>
Sun, 21 Apr 2013 00:57:41 +0000
(17:57 -0700)
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/io.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/io.c
b/drivers/md/bcache/io.c
index
f565512
..
b4c0e28
100644
(file)
--- 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)
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);
}