Skip to content

Commit faa8e2c

Browse files
Ming Leiaxboe
authored andcommitted
bcache: don't pass BIOSET_NEED_BVECS for the 'bio_set' embedded in 'cache_set'
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>
1 parent eec716a commit faa8e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/bcache/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ struct cache_set *bch_cache_set_alloc(struct cache_sb *sb)
19391939
goto err;
19401940

19411941
if (bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio),
1942-
BIOSET_NEED_BVECS|BIOSET_NEED_RESCUER))
1942+
BIOSET_NEED_RESCUER))
19431943
goto err;
19441944

19451945
c->uuids = alloc_meta_bucket_pages(GFP_KERNEL, sb);

0 commit comments

Comments
 (0)