Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Christoph Hellwig
On Wed, Jun 28, 2017 at 02:11:31PM -0700, Shaohua Li wrote: > I fixed the same issue in the blktrace patches. It did the free in bio_endio. Moving all the frees to bio_endio does indeed seem sensible, as it avoids the additional calls for the bio_init()ed bios.

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Shaohua Li
On Wed, Jun 28, 2017 at 12:57:50PM -0600, Jens Axboe wrote: > On 06/28/2017 12:52 PM, Christoph Hellwig wrote: > > On Wed, Jun 28, 2017 at 12:44:00PM -0600, Jens Axboe wrote: > >> On 06/28/2017 12:38 PM, Christoph Hellwig wrote: > >>> On Wed, Jun 28, 2017 at 12:34:15PM -0600, Jens Axboe wrote: > >>

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 12:52 PM, Christoph Hellwig wrote: > On Wed, Jun 28, 2017 at 12:44:00PM -0600, Jens Axboe wrote: >> On 06/28/2017 12:38 PM, Christoph Hellwig wrote: >>> On Wed, Jun 28, 2017 at 12:34:15PM -0600, Jens Axboe wrote: That's what I sent out. >>> >>> Where? Didn't see that anywhere..

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Christoph Hellwig
On Wed, Jun 28, 2017 at 12:44:00PM -0600, Jens Axboe wrote: > On 06/28/2017 12:38 PM, Christoph Hellwig wrote: > > On Wed, Jun 28, 2017 at 12:34:15PM -0600, Jens Axboe wrote: > >> That's what I sent out. > > > > Where? Didn't see that anywhere.. > > Looks like you weren't CC'ed on the original t

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 12:38 PM, Christoph Hellwig wrote: > On Wed, Jun 28, 2017 at 12:34:15PM -0600, Jens Axboe wrote: >> That's what I sent out. > > Where? Didn't see that anywhere.. Looks like you weren't CC'ed on the original thread. About an hour ago. >> Here it is again. We should get this into 4.

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Christoph Hellwig
On Wed, Jun 28, 2017 at 12:34:15PM -0600, Jens Axboe wrote: > That's what I sent out. Where? Didn't see that anywhere.. > Here it is again. We should get this into 4.12, > so would be great with a review or two. Can we rename __bio_free to bio_uninit and add a comment to bio_init that it must b

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 12:31 PM, Christoph Hellwig wrote: > On Wed, Jun 28, 2017 at 01:10:31PM -0400, Keith Busch wrote: >> On Wed, Jun 28, 2017 at 11:32:51AM -0500, wenxi...@linux.vnet.ibm.com wrote: >>> diff --git a/fs/block_dev.c b/fs/block_dev.c >>> index 519599d..e871444 100644 >>> --- a/fs/block_dev.c

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Christoph Hellwig
On Wed, Jun 28, 2017 at 01:10:31PM -0400, Keith Busch wrote: > On Wed, Jun 28, 2017 at 11:32:51AM -0500, wenxi...@linux.vnet.ibm.com wrote: > > diff --git a/fs/block_dev.c b/fs/block_dev.c > > index 519599d..e871444 100644 > > --- a/fs/block_dev.c > > +++ b/fs/block_dev.c > > @@ -264,6 +264,10 @@ s

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 11:10 AM, Keith Busch wrote: > On Wed, Jun 28, 2017 at 11:32:51AM -0500, wenxi...@linux.vnet.ibm.com wrote: >> diff --git a/fs/block_dev.c b/fs/block_dev.c >> index 519599d..e871444 100644 >> --- a/fs/block_dev.c >> +++ b/fs/block_dev.c >> @@ -264,6 +264,10 @@ static void blkdev_bio_e

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 11:42 AM, Jens Axboe wrote: > On 06/28/2017 10:32 AM, wenxi...@linux.vnet.ibm.com wrote: >> From: Wen Xiong >> >> With nvme devive + T10 enabled, On a system it has 256GB and started >> logging /proc/meminfo & /proc/slabinfo for every minute and in an hour >> it increased by 15968128

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Jens Axboe
On 06/28/2017 10:32 AM, wenxi...@linux.vnet.ibm.com wrote: > From: Wen Xiong > > With nvme devive + T10 enabled, On a system it has 256GB and started > logging /proc/meminfo & /proc/slabinfo for every minute and in an hour > it increased by 15968128 kB or ~15+GB.. Approximately 256 MB / minute >

Re: [PATCH] fs: System memory leak when running HTX with T10 DIF enabled

2017-06-28 Thread Keith Busch
On Wed, Jun 28, 2017 at 11:32:51AM -0500, wenxi...@linux.vnet.ibm.com wrote: > diff --git a/fs/block_dev.c b/fs/block_dev.c > index 519599d..e871444 100644 > --- a/fs/block_dev.c > +++ b/fs/block_dev.c > @@ -264,6 +264,10 @@ static void blkdev_bio_end_io_simple(struct bio *bio) > > if (unli