Re: [dm-devel] [PATCH] dm-bufio: fix memleak when using a dm_buffer's inline bio

2014-12-01 Thread Mikulas Patocka
On Tue, 25 Nov 2014, Darrick J. Wong wrote: > When dm-bufio sets out to use the bio built into a struct dm_buffer to > issue an IO, it needs to call bio_reset after it's done with the bio > so that we can free things attached to the bio such as the integrity > payload. Therefore, inject our own

[PATCH] dm-bufio: fix memleak when using a dm_buffer's inline bio

2014-11-25 Thread Darrick J. Wong
When dm-bufio sets out to use the bio built into a struct dm_buffer to issue an IO, it needs to call bio_reset after it's done with the bio so that we can free things attached to the bio such as the integrity payload. Therefore, inject our own endio callback to take care of the bio_reset after cal