Skip to content

Commit c495a17

Browse files
Ming Leiaxboe
authored andcommitted
block: don't pass BIOSET_NEED_BVECS for q->bio_split
q->bio_split is only used by bio_split() for fast cloning bio, and no need to allocate bvecs, so remove this flag. Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Pavel Begunkov <[email protected]> Tested-by: Pavel Begunkov <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 49d1ec8 commit c495a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ struct request_queue *blk_alloc_queue(int node_id)
531531
if (q->id < 0)
532532
goto fail_q;
533533

534-
ret = bioset_init(&q->bio_split, BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS);
534+
ret = bioset_init(&q->bio_split, BIO_POOL_SIZE, 0, 0);
535535
if (ret)
536536
goto fail_id;
537537

0 commit comments

Comments
 (0)