block: turn bio_kmalloc into a simple kmalloc wrapper
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Apr 2022 06:12:27 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:30:41 +0000 (19:30 -0600)
commit066ff571011d8416e903d3d4f1f41e0b5eb91e1d
tree749f3f28b12204c02e223ec27318d5a231eede0f
parent7655db80932d95f501a0811544d9520ec720e38d
block: turn bio_kmalloc into a simple kmalloc wrapper

Remove the magic autofree semantics and require the callers to explicitly
call bio_init to initialize the bio.

This allows bio_free to catch accidental bio_put calls on bio_init()ed
bios as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Coly Li <colyli@suse.de>
Acked-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20220406061228.410163-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-crypto-fallback.c
block/blk-map.c
drivers/block/pktcdvd.c
drivers/md/bcache/debug.c
drivers/md/dm-bufio.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/target/target_core_pscsi.c
fs/squashfs/block.c
include/linux/bio.h