Commit b6319ae1 authored by Ming Lei's avatar Ming Lei Committed by Luis Henriques

UBUNTU: SAUCE: hio: splitting bio in the entry of .make_request_fn

BugLink: http://bugs.launchpad.net/bugs/1638700

From v4.3, the incoming bio can be very big[1], and it is
required to split it first in .make_request_fn(), so
we need to do that for hio.c too.

[1] c66a14d0(block: simplify bio_add_page())
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent 676fa564
......@@ -8314,6 +8314,10 @@ static int ssd_make_request(struct request_queue *q, struct bio *bio)
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0))
blk_queue_split(q, &bio, q->bio_split);
#endif
if (0 == atomic_read(&dev->in_sendq)) {
ret = ssd_submit_bio(dev, bio, 0);
}
......
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