mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
submit_bio_wait() gives the caller an opportunity to examine
struct bio and so expects the caller to issue the put_bio()
This fixes a memory leak reported by a few people in 4.7-rc2
kmemleak report after 9082e87bfb ("block: remove struct bio_batch")
Signed-off-by: Shaun Tancheff <[email protected]>
Tested-by: Catalin Marinas <[email protected]>
Tested-by: Larry [email protected]
Tested-by: David Drysdale <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>