diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-01-11 11:05:53 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-24 21:22:45 -0700 |
commit | c495a17679523c95f77f13697a71921dd5c224cd (patch) | |
tree | dc9f2c4a164ad228f19c6113ac741b827129fd9f /block | |
parent | 49d1ec8573f74ff1e23df1d5092211de46baa236 (diff) | |
download | linux-c495a17679523c95f77f13697a71921dd5c224cd.tar.gz |
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 <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Tested-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 6dfbdde6b9ff..88f608904432 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; |