]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: SAUCE: hio: splitting bio in the entry of .make_request_fn
authorMing Lei <tom.leiming@gmail.com>
Thu, 3 Nov 2016 01:20:01 +0000 (09:20 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
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] c66a14d07c136cc3(block: simplify bio_add_page())

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
ubuntu/hio/hio.c

index fe572e4309415703f242836b9dddf27f7d74d85e..fd58f37ffbac4d179ee38b6773215fb4331310d4 100644 (file)
@@ -8338,6 +8338,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);
        }