Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6409e84e authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Shaohua Li
Browse files

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: 011067b0 ("blk: replace bioset_create_nobvec() with a flags arg to bioset_create()")
Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent b5d27718
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;