Skip to content
Snippets Groups Projects
user avatar
Shaun Tancheff authored
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 9082e87b ("block: remove struct bio_batch")

Signed-off-by: default avatarShaun Tancheff <shaun.tancheff@seagate.com>
Tested-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Tested-by: default avatarLarry <Finger@lwfinger.net>
Tested-by: default avatarDavid Drysdale <drysdale@google.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
05bd92dd
History