Skip to content

Commit 6409e84

Browse files
apaszkieshligit
authored andcommitted
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: 011067b ("blk: replace bioset_create_nobvec() with a flags arg to bioset_create()") Signed-off-by: Artur Paszkiewicz <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
1 parent b5d2771 commit 6409e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/raid5-ppl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ int ppl_init_log(struct r5conf *conf)
11501150
goto err;
11511151
}
11521152

1153-
ppl_conf->bs = bioset_create(conf->raid_disks, 0, 0);
1153+
ppl_conf->bs = bioset_create(conf->raid_disks, 0, BIOSET_NEED_BVECS);
11541154
if (!ppl_conf->bs) {
11551155
ret = -ENOMEM;
11561156
goto err;

0 commit comments

Comments
 (0)