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

2014-11-26 Thread Darrick J. Wong
On Wed, Nov 26, 2014 at 09:28:32AM -0500, Mike Snitzer wrote: > On Tue, Nov 25 2014 at 11:00pm -0500, > Darrick J. Wong wrote: > > > On Tue, Nov 25, 2014 at 10:41:04PM -0500, Mike Snitzer wrote: > > > On Tue, Nov 25 2014 at 8:45pm -0500, > > > Darrick J. Wong wrote: > > > > > > > When dm-bufio

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

2014-11-25 Thread Darrick J. Wong
On Tue, Nov 25, 2014 at 10:41:04PM -0500, Mike Snitzer wrote: > On Tue, Nov 25 2014 at 8:45pm -0500, > 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 f