linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [105/105] nfsd4: fix oops on lock failure
       [not found] ` <87pqokx6lr.fsf@devron.myhome.or.jp>
@ 2011-04-17 16:10   ` Linus Torvalds
  2011-04-18 15:32     ` J. Bruce Fields
  0 siblings, 1 reply; 15+ messages in thread
From: Linus Torvalds @ 2011-04-17 16:10 UTC (permalink / raw)
  To: OGAWA Hirofumi
  Cc: J. Bruce Fields, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

On Sun, Apr 17, 2011 at 8:03 AM, OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp> wrote:
>
> I'm looking filp leak on recent kernel. Well, anyway,
> 23fcf2ec93fb8573a653408316af599939ff9a8e is strange, and I think it can
> be one of causes.

Hmm. Your patch looks correct to me. Added Neil and linux-nfs.

Bruce? Neil?

               Linus

---
> [PATCH] nfsd4: Fix filp leak
>
> 23fcf2ec93fb8573a653408316af599939ff9a8e (nfsd4: fix oops on lock failure)
>
> The above patch breaks free path for stp->st_file. If stp was inserted
> into sop->so_stateids, we have to free stp->st_file refcount. Because
> stp->st_file refcount itself is taken unrelated to stp->st_file->fi_fds[].
>
> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> ---
>
>  fs/nfsd/nfs4state.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN fs/nfsd/nfs4state.c~nfsd4-filp-leak-fix fs/nfsd/nfs4state.c
> --- linux-2.6/fs/nfsd/nfs4state.c~nfsd4-filp-leak-fix   2011-04-17 20:45:45.000000000 +0900
> +++ linux-2.6-hirofumi/fs/nfsd/nfs4state.c      2011-04-17 20:59:53.000000000 +0900
> @@ -402,8 +402,8 @@ static void free_generic_stateid(struct
>        if (stp->st_access_bmap) {
>                oflag = nfs4_access_bmap_to_omode(stp);
>                nfs4_file_put_access(stp->st_file, oflag);
> -               put_nfs4_file(stp->st_file);
>        }
> +       put_nfs4_file(stp->st_file);
>        kmem_cache_free(stateid_slab, stp);
>  }
>
> _
> --
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-17 16:10   ` [105/105] nfsd4: fix oops on lock failure Linus Torvalds
@ 2011-04-18 15:32     ` J. Bruce Fields
  2011-04-18 15:42       ` J. Bruce Fields
  2011-04-18 16:08       ` OGAWA Hirofumi
  0 siblings, 2 replies; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-18 15:32 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: OGAWA Hirofumi, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

On Sun, Apr 17, 2011 at 09:10:12AM -0700, Linus Torvalds wrote:
> On Sun, Apr 17, 2011 at 8:03 AM, OGAWA Hirofumi
> <hirofumi@mail.parknet.co.jp> wrote:
> >
> > I'm looking filp leak on recent kernel. Well, anyway,

Does this fix it?

--b.

commit 5152c8a947359758862d4631863e68e83ec01048
Author: J. Bruce Fields <bfields@redhat.com>
Date:   Fri Apr 15 18:08:26 2011 -0400

    nfsd4: fix struct file leak on delegation
    
    Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.
    
    Cc: stable@kernel.org
    Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
    Signed-off-by: J. Bruce Fields <bfields@redhat.com>

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index aa309aa..c79a983 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
 	if (atomic_dec_and_test(&fp->fi_delegees)) {
 		vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
 		fp->fi_lease = NULL;
+		fput(fp->fi_deleg_file);
 		fp->fi_deleg_file = NULL;
 	}
 }

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 15:32     ` J. Bruce Fields
@ 2011-04-18 15:42       ` J. Bruce Fields
  2011-04-18 16:08       ` OGAWA Hirofumi
  1 sibling, 0 replies; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-18 15:42 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: OGAWA Hirofumi, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

On Mon, Apr 18, 2011 at 11:32:36AM -0400, J. Bruce Fields wrote:
> On Sun, Apr 17, 2011 at 09:10:12AM -0700, Linus Torvalds wrote:
> > On Sun, Apr 17, 2011 at 8:03 AM, OGAWA Hirofumi
> > <hirofumi@mail.parknet.co.jp> wrote:
> > >
> > > I'm looking filp leak on recent kernel. Well, anyway,
> 
> Does this fix it?

(But, yes, I think your patch is almost certainly right as well.
Gah--I've been introducing depressing number of regressions lately.)

--b.

> 
> --b.
> 
> commit 5152c8a947359758862d4631863e68e83ec01048
> Author: J. Bruce Fields <bfields@redhat.com>
> Date:   Fri Apr 15 18:08:26 2011 -0400
> 
>     nfsd4: fix struct file leak on delegation
>     
>     Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.
>     
>     Cc: stable@kernel.org
>     Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
>     Signed-off-by: J. Bruce Fields <bfields@redhat.com>
> 
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index aa309aa..c79a983 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
>  	if (atomic_dec_and_test(&fp->fi_delegees)) {
>  		vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
>  		fp->fi_lease = NULL;
> +		fput(fp->fi_deleg_file);
>  		fp->fi_deleg_file = NULL;
>  	}
>  }

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 15:32     ` J. Bruce Fields
  2011-04-18 15:42       ` J. Bruce Fields
@ 2011-04-18 16:08       ` OGAWA Hirofumi
  2011-04-18 16:10         ` OGAWA Hirofumi
  1 sibling, 1 reply; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-18 16:08 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

"J. Bruce Fields" <bfields@redhat.com> writes:

> On Sun, Apr 17, 2011 at 09:10:12AM -0700, Linus Torvalds wrote:
>> On Sun, Apr 17, 2011 at 8:03 AM, OGAWA Hirofumi
>> <hirofumi@mail.parknet.co.jp> wrote:
>> >
>> > I'm looking filp leak on recent kernel. Well, anyway,
>
> Does this fix it?

It seems to be no, unfortunately. filp leak is not so fast, and obvious
reproduce process is not known yet. Well, sigh, I'm starting to add
debugging code for it...
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 16:08       ` OGAWA Hirofumi
@ 2011-04-18 16:10         ` OGAWA Hirofumi
  2011-04-18 16:39           ` OGAWA Hirofumi
  0 siblings, 1 reply; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-18 16:10 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

> "J. Bruce Fields" <bfields@redhat.com> writes:
>
>> On Sun, Apr 17, 2011 at 09:10:12AM -0700, Linus Torvalds wrote:
>>> On Sun, Apr 17, 2011 at 8:03 AM, OGAWA Hirofumi
>>> <hirofumi@mail.parknet.co.jp> wrote:
>>> >
>>> > I'm looking filp leak on recent kernel. Well, anyway,
>>
>> Does this fix it?
>
> It seems to be no, unfortunately. filp leak is not so fast, and obvious
> reproduce process is not known yet. Well, sigh, I'm starting to add
> debugging code for it...

Ah, I was missing patch itself. I'll see.

> commit 5152c8a947359758862d4631863e68e83ec01048
> Author: J. Bruce Fields <bfields@redhat.com>
> Date:   Fri Apr 15 18:08:26 2011 -0400
> 
>     nfsd4: fix struct file leak on delegation
>     
>     Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.
>     
>     Cc: stable@kernel.org
>     Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
>     Signed-off-by: J. Bruce Fields <bfields@redhat.com>
> 
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index aa309aa..c79a983 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
>  	if (atomic_dec_and_test(&fp->fi_delegees)) {
>  		vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
>  		fp->fi_lease = NULL;
> +		fput(fp->fi_deleg_file);
>  		fp->fi_deleg_file = NULL;
>  	}
>  }
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 16:10         ` OGAWA Hirofumi
@ 2011-04-18 16:39           ` OGAWA Hirofumi
  2011-04-18 16:59             ` Linus Torvalds
  2011-04-18 21:12             ` OGAWA Hirofumi
  0 siblings, 2 replies; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-18 16:39 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

>> commit 5152c8a947359758862d4631863e68e83ec01048
>> Author: J. Bruce Fields <bfields@redhat.com>
>> Date:   Fri Apr 15 18:08:26 2011 -0400
>> 
>>     nfsd4: fix struct file leak on delegation
>>     
>>     Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.
>>     
>>     Cc: stable@kernel.org
>>     Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
>>     Signed-off-by: J. Bruce Fields <bfields@redhat.com>
>> 
>> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
>> index aa309aa..c79a983 100644
>> --- a/fs/nfsd/nfs4state.c
>> +++ b/fs/nfsd/nfs4state.c
>> @@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
>>  	if (atomic_dec_and_test(&fp->fi_delegees)) {
>>  		vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
>>  		fp->fi_lease = NULL;
>> +		fput(fp->fi_deleg_file);
>>  		fp->fi_deleg_file = NULL;
>>  	}
>>  }

For now, I feel this explain filp leak on my system. the leak is
increased slowly (filp, cred_jar, and no nfs* slabs), and leak is on
nfs server side.

I'll start test of this patch, and see what happens.

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 16:39           ` OGAWA Hirofumi
@ 2011-04-18 16:59             ` Linus Torvalds
  2011-04-18 17:16               ` J. Bruce Fields
  2011-04-18 21:12             ` OGAWA Hirofumi
  1 sibling, 1 reply; 15+ messages in thread
From: Linus Torvalds @ 2011-04-18 16:59 UTC (permalink / raw)
  To: OGAWA Hirofumi
  Cc: J. Bruce Fields, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

On Mon, Apr 18, 2011 at 9:39 AM, OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp> wrote:
>
> For now, I feel this explain filp leak on my system. the leak is
> increased slowly (filp, cred_jar, and no nfs* slabs), and leak is on
> nfs server side.
>
> I'll start test of this patch, and see what happens.

Can somebody ping/remind me when that is verified - preferably about
_both_ patches, even if it turns out that the first one by Ogawa
wasn't the one that caused the problem?

Or can I just assume that the fix will be in Bruce's pull requests some day?

                         Linus

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 16:59             ` Linus Torvalds
@ 2011-04-18 17:16               ` J. Bruce Fields
  2011-04-18 18:21                 ` [stable] " Greg KH
  0 siblings, 1 reply; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-18 17:16 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-nfs, Neil Brown, Greg KH, linux-kernel, OGAWA Hirofumi,
	akpm, stable, alan

On Mon, Apr 18, 2011 at 09:59:26AM -0700, Linus Torvalds wrote:
> On Mon, Apr 18, 2011 at 9:39 AM, OGAWA Hirofumi
> <hirofumi@mail.parknet.co.jp> wrote:
> >
> > For now, I feel this explain filp leak on my system. the leak is
> > increased slowly (filp, cred_jar, and no nfs* slabs), and leak is on
> > nfs server side.
> >
> > I'll start test of this patch, and see what happens.
> 
> Can somebody ping/remind me when that is verified - preferably about
> _both_ patches, even if it turns out that the first one by Ogawa
> wasn't the one that caused the problem?
> 
> Or can I just assume that the fix will be in Bruce's pull requests some day?

I'll send a pull request when it's sorted out, thanks.

--b.

_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [stable] [105/105] nfsd4: fix oops on lock failure
  2011-04-18 17:16               ` J. Bruce Fields
@ 2011-04-18 18:21                 ` Greg KH
  0 siblings, 0 replies; 15+ messages in thread
From: Greg KH @ 2011-04-18 18:21 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, linux-nfs, Neil Brown, Greg KH, linux-kernel,
	OGAWA Hirofumi, akpm, stable, alan

On Mon, Apr 18, 2011 at 01:16:43PM -0400, J. Bruce Fields wrote:
> On Mon, Apr 18, 2011 at 09:59:26AM -0700, Linus Torvalds wrote:
> > On Mon, Apr 18, 2011 at 9:39 AM, OGAWA Hirofumi
> > <hirofumi@mail.parknet.co.jp> wrote:
> > >
> > > For now, I feel this explain filp leak on my system. the leak is
> > > increased slowly (filp, cred_jar, and no nfs* slabs), and leak is on
> > > nfs server side.
> > >
> > > I'll start test of this patch, and see what happens.
> > 
> > Can somebody ping/remind me when that is verified - preferably about
> > _both_ patches, even if it turns out that the first one by Ogawa
> > wasn't the one that caused the problem?
> > 
> > Or can I just assume that the fix will be in Bruce's pull requests some day?
> 
> I'll send a pull request when it's sorted out, thanks.

Please tag it for stable as well so I know to pick it up.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 16:39           ` OGAWA Hirofumi
  2011-04-18 16:59             ` Linus Torvalds
@ 2011-04-18 21:12             ` OGAWA Hirofumi
  2011-04-19  8:21               ` OGAWA Hirofumi
  1 sibling, 1 reply; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-18 21:12 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
>
>>> commit 5152c8a947359758862d4631863e68e83ec01048
>>> Author: J. Bruce Fields <bfields@redhat.com>
>>> Date:   Fri Apr 15 18:08:26 2011 -0400
>>> 
>>>     nfsd4: fix struct file leak on delegation
>>>     
>>>     Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.
>>>     
>>>     Cc: stable@kernel.org
>>>     Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
>>>     Signed-off-by: J. Bruce Fields <bfields@redhat.com>
>>> 
>>> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
>>> index aa309aa..c79a983 100644
>>> --- a/fs/nfsd/nfs4state.c
>>> +++ b/fs/nfsd/nfs4state.c
>>> @@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
>>>  	if (atomic_dec_and_test(&fp->fi_delegees)) {
>>>  		vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
>>>  		fp->fi_lease = NULL;
>>> +		fput(fp->fi_deleg_file);
>>>  		fp->fi_deleg_file = NULL;
>>>  	}
>>>  }
>
> For now, I feel this explain filp leak on my system. the leak is
> increased slowly (filp, cred_jar, and no nfs* slabs), and leak is on
> nfs server side.
>
> I'll start test of this patch, and see what happens.

OK. Although filp slabs are still slightly increasing (I'm not sure yet
whether this is leak of filp on system). But watching before/after
patch, the graph of filp slabs is clearly different.

As far as I can say patches are fine.

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-18 21:12             ` OGAWA Hirofumi
@ 2011-04-19  8:21               ` OGAWA Hirofumi
  2011-04-19 20:43                 ` J. Bruce Fields
  0 siblings, 1 reply; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-19  8:21 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Linus Torvalds, Greg KH, linux-kernel, stable, akpm, alan,
	Neil Brown, linux-nfs

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:

>> I'll start test of this patch, and see what happens.
>
> OK. Although filp slabs are still slightly increasing (I'm not sure yet
> whether this is leak of filp on system). But watching before/after
> patch, the graph of filp slabs is clearly different.
>
> As far as I can say patches are fine.

slightly increasing was stopped at 2200-2300. filp leak seems to be fixed.

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-19  8:21               ` OGAWA Hirofumi
@ 2011-04-19 20:43                 ` J. Bruce Fields
  2011-04-19 21:17                   ` OGAWA Hirofumi
  0 siblings, 1 reply; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-19 20:43 UTC (permalink / raw)
  To: OGAWA Hirofumi
  Cc: J. Bruce Fields, Linus Torvalds, Greg KH, linux-kernel, stable,
	akpm, alan, Neil Brown, linux-nfs

On Tue, Apr 19, 2011 at 05:21:57PM +0900, OGAWA Hirofumi wrote:
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
> 
> >> I'll start test of this patch, and see what happens.
> >
> > OK. Although filp slabs are still slightly increasing (I'm not sure yet
> > whether this is leak of filp on system). But watching before/after
> > patch, the graph of filp slabs is clearly different.
> >
> > As far as I can say patches are fine.
> 
> slightly increasing was stopped at 2200-2300. filp leak seems to be fixed.

Another thing to check is whether you can always unmount the exported
filesystem on the server after running your test.  So something like:

	service nfs stop
	unmount /exports/fs

should always succeed; if you get an inexplicable EBUSY on the final
unmount then we likely still have a leak someplace.

--b.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
  2011-04-19 20:43                 ` J. Bruce Fields
@ 2011-04-19 21:17                   ` OGAWA Hirofumi
       [not found]                     ` <87aafmgcvk.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: OGAWA Hirofumi @ 2011-04-19 21:17 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: J. Bruce Fields, Linus Torvalds, Greg KH, linux-kernel, stable,
	akpm, alan, Neil Brown, linux-nfs

"J. Bruce Fields" <bfields@fieldses.org> writes:

> On Tue, Apr 19, 2011 at 05:21:57PM +0900, OGAWA Hirofumi wrote:
>> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
>> 
>> >> I'll start test of this patch, and see what happens.
>> >
>> > OK. Although filp slabs are still slightly increasing (I'm not sure yet
>> > whether this is leak of filp on system). But watching before/after
>> > patch, the graph of filp slabs is clearly different.
>> >
>> > As far as I can say patches are fine.
>> 
>> slightly increasing was stopped at 2200-2300. filp leak seems to be fixed.
>
> Another thing to check is whether you can always unmount the exported
> filesystem on the server after running your test.  So something like:
>
> 	service nfs stop
> 	unmount /exports/fs
>
> should always succeed; if you get an inexplicable EBUSY on the final
> unmount then we likely still have a leak someplace.

It succeeded.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [105/105] nfsd4: fix oops on lock failure
       [not found]                     ` <87aafmgcvk.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
@ 2011-04-19 21:33                       ` J. Bruce Fields
  2011-04-20 23:23                         ` nfsd bugfixes for 2.6.39 J. Bruce Fields
  0 siblings, 1 reply; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-19 21:33 UTC (permalink / raw)
  To: OGAWA Hirofumi
  Cc: J. Bruce Fields, Linus Torvalds, Greg KH, linux-kernel, stable,
	akpm, alan, Neil Brown, linux-nfs

On Wed, Apr 20, 2011 at 06:17:03AM +0900, OGAWA Hirofumi wrote:
> "J. Bruce Fields" <bfields@fieldses.org> writes:
> 
> > On Tue, Apr 19, 2011 at 05:21:57PM +0900, OGAWA Hirofumi wrote:
> >> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
> >> 
> >> >> I'll start test of this patch, and see what happens.
> >> >
> >> > OK. Although filp slabs are still slightly increasing (I'm not sure yet
> >> > whether this is leak of filp on system). But watching before/after
> >> > patch, the graph of filp slabs is clearly different.
> >> >
> >> > As far as I can say patches are fine.
> >> 
> >> slightly increasing was stopped at 2200-2300. filp leak seems to be fixed.
> >
> > Another thing to check is whether you can always unmount the exported
> > filesystem on the server after running your test.  So something like:
> >
> > 	service nfs stop
> > 	unmount /exports/fs
> >
> > should always succeed; if you get an inexplicable EBUSY on the final
> > unmount then we likely still have a leak someplace.
> 
> It succeeded.

Good, thanks.--b.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* nfsd bugfixes for 2.6.39
  2011-04-19 21:33                       ` J. Bruce Fields
@ 2011-04-20 23:23                         ` J. Bruce Fields
  0 siblings, 0 replies; 15+ messages in thread
From: J. Bruce Fields @ 2011-04-20 23:23 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: OGAWA Hirofumi, J. Bruce Fields, Greg KH, linux-kernel, stable,
	akpm, alan, Neil Brown, linux-nfs

Bugfixes for nfsd are available from the for-2.6.39 branch at:

  git://linux-nfs.org/~bfields/linux.git for-2.6.39

In particular, this should deal with the file leaks noticed by several
people.

--b.

J. Bruce Fields (1):
      nfsd4: fix struct file leak on delegation

OGAWA Hirofumi (1):
      nfsd4: Fix filp leak

Sachin Prabhu (1):
      Open with O_CREAT flag set fails to open existing files on non writable directories

 fs/nfsd/nfs4state.c |    3 ++-
 fs/nfsd/vfs.c       |    9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-04-20 23:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110412143559.186613198@clark.kroah.org>
     [not found] ` <87pqokx6lr.fsf@devron.myhome.or.jp>
2011-04-17 16:10   ` [105/105] nfsd4: fix oops on lock failure Linus Torvalds
2011-04-18 15:32     ` J. Bruce Fields
2011-04-18 15:42       ` J. Bruce Fields
2011-04-18 16:08       ` OGAWA Hirofumi
2011-04-18 16:10         ` OGAWA Hirofumi
2011-04-18 16:39           ` OGAWA Hirofumi
2011-04-18 16:59             ` Linus Torvalds
2011-04-18 17:16               ` J. Bruce Fields
2011-04-18 18:21                 ` [stable] " Greg KH
2011-04-18 21:12             ` OGAWA Hirofumi
2011-04-19  8:21               ` OGAWA Hirofumi
2011-04-19 20:43                 ` J. Bruce Fields
2011-04-19 21:17                   ` OGAWA Hirofumi
     [not found]                     ` <87aafmgcvk.fsf-x/W9pkDDSe1TgC2z9Sl/nXf5DAMn2ifp@public.gmane.org>
2011-04-19 21:33                       ` J. Bruce Fields
2011-04-20 23:23                         ` nfsd bugfixes for 2.6.39 J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).