]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bcache: don't pass BIOSET_NEED_BVECS for the 'bio_set' embedded in 'cache_set'
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Jan 2021 03:05:57 +0000 (11:05 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:24:09 +0000 (21:24 -0700)
This bioset is just for allocating bio only from bio_next_split, and it
needn't bvecs, so remove the flag.

Cc: linux-bcache@vger.kernel.org
Cc: Coly Li <colyli@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c

index 2047a9cccdb5dee42a081dfa21f3efbc49410129..193fe7652329a3cad68a93de637674cdf316b621 100644 (file)
@@ -1939,7 +1939,7 @@ struct cache_set *bch_cache_set_alloc(struct cache_sb *sb)
                goto err;
 
        if (bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio),
-                       BIOSET_NEED_BVECS|BIOSET_NEED_RESCUER))
+                       BIOSET_NEED_RESCUER))
                goto err;
 
        c->uuids = alloc_meta_bucket_pages(GFP_KERNEL, sb);