From: Ming Lei Date: Mon, 11 Jan 2021 03:05:53 +0000 (+0800) Subject: block: don't pass BIOSET_NEED_BVECS for q->bio_split X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c495a17679523c95f77f13697a71921dd5c224cd;p=linux.git 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 Signed-off-by: Ming Lei Reviewed-by: Pavel Begunkov Tested-by: Pavel Begunkov Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- diff --git a/block/blk-core.c b/block/blk-core.c index 6dfbdde6b9ff8..88f6089044326 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -531,7 +531,7 @@ struct request_queue *blk_alloc_queue(int node_id) if (q->id < 0) goto fail_q; - ret = bioset_init(&q->bio_split, BIO_POOL_SIZE, 0, BIOSET_NEED_BVECS); + ret = bioset_init(&q->bio_split, BIO_POOL_SIZE, 0, 0); if (ret) goto fail_id;