raid5-ppl: use BIOSET_NEED_BVECS when creating bioset
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 11 Jul 2017 14:16:24 +0000 (16:16 +0200)
committerShaohua Li <shli@fb.com>
Wed, 12 Jul 2017 16:26:37 +0000 (09:26 -0700)
This bioset is used for allocating bios with nr_iovecs > 0 so this flag
must be set.

Fixes: 011067b05668 ("blk: replace bioset_create_nobvec() with a flags arg to bioset_create()")
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-ppl.c

index 77cce35..44ad5ba 100644 (file)
@@ -1150,7 +1150,7 @@ int ppl_init_log(struct r5conf *conf)
                goto err;
        }
 
-       ppl_conf->bs = bioset_create(conf->raid_disks, 0, 0);
+       ppl_conf->bs = bioset_create(conf->raid_disks, 0, BIOSET_NEED_BVECS);
        if (!ppl_conf->bs) {
                ret = -ENOMEM;
                goto err;