]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: don't pass BIOSET_NEED_BVECS for q->bio_split
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Jan 2021 03:05:53 +0000 (11:05 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:22:45 +0000 (21:22 -0700)
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>
block/blk-core.c

index 6dfbdde6b9ff84faeb97e0fdd776bb1a174f8274..88f6089044326433a137e6915deb6b1f424c2ca5 100644 (file)
@@ -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;