block: turn bio_kmalloc into a simple kmalloc wrapper
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 06:15:50 +0000 (07:15 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 14:37:57 +0000 (08:37 -0600)
commit57c47b42f4545b5f8fa288f190c0d68f96bc477f
tree12274655a50e202f5fc7b7b1c4d11d7757e82f0e
parentbbccc65bd7c1b22f050b65d8171fbdd8d72cf39c
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>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220308061551.737853-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