]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe0d7c0a2cf2650e144f08599cf3332da67010a1
tree749f3f28b12204c02e223ec27318d5a231eede0f
parent1b980c622161f3067884ed360ef16809f0bc431f
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