Skip to content

Commit

Permalink
raid5-ppl: use BIOSET_NEED_BVECS when creating bioset
Browse files Browse the repository at this point in the history
This bioset is used for allocating bios with nr_iovecs > 0 so this flag
must be set.

Fixes: 011067b ("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>
  • Loading branch information
Artur Paszkiewicz authored and Shaohua Li committed Jul 12, 2017
1 parent b5d2771 commit 6409e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/raid5-ppl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6409e84

Please sign in to comment.