On 06/06/2016 11:27 AM, Christoph Hellwig wrote:
On Mon, Jun 06, 2016 at 12:09:49PM -0500, Shaun Tancheff wrote:
I'm pretty sure it is missing a bio_put() after submit_bio_wait().

Please excuse the hack-y patch but I think you need to do something
like this ...
(Note tabs eaten by gmail).

Yeah, that makes sense - oddly enough submit_bio_wait doesn't do a
bio_put. Still not sure why I don't see the leaks after repeated
mkfs.xfs runs, though.

Because some of the users (blkdev_issue_flush()) need to inspect the bio after completion.

--
Jens Axboe

Reply via email to