summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5-ppl.c
diff options
context:
space:
mode:
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>2017-07-11 16:16:24 +0200
committerShaohua Li <shli@fb.com>2017-07-12 09:26:37 -0700
commit6409e84ec58fc4c0085d8921f8e01815dc871971 (patch)
tree9926802484ac5bccd4eefc59f3b1dd9074340f12 /drivers/md/raid5-ppl.c
parentb5d27718f38843a74552e9a93d32e2391fd3999f (diff)
downloadtalos-op-linux-6409e84ec58fc4c0085d8921f8e01815dc871971.tar.gz
talos-op-linux-6409e84ec58fc4c0085d8921f8e01815dc871971.zip
raid5-ppl: use BIOSET_NEED_BVECS when creating bioset
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>
Diffstat (limited to 'drivers/md/raid5-ppl.c')
-rw-r--r--drivers/md/raid5-ppl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c
index 77cce3573aa8..44ad5baf3206 100644
--- a/drivers/md/raid5-ppl.c
+++ b/drivers/md/raid5-ppl.c
@@ -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;
OpenPOWER on IntegriCloud