From: Wendy Cheng <wcheng@redhat.com>
To: Linux NFS Mailing List <nfs@lists.sourceforge.net>
Subject: Re: [PATCH] fix recursive nlm_file_mutex deadlock
Date: Wed, 09 Aug 2006 14:32:36 -0400 [thread overview]
Message-ID: <44DA2A44.1060001@redhat.com> (raw)
In-Reply-To: <44DA25D3.3010003@redhat.com>
Wendy Cheng wrote:
>
> The attached patch seems to fix the issue - it skips (defers) the file
> removal. Eventually either nlm_gc_hosts (some time later when client
> is unmonitored) or nlmsvc_traverse_files will finish the clean up.
> Note that this is a 10-minutes work - not sure its ramification at
> this moment. Take a look ?
>
Well, I never really understand what this "signed-off" line is all
about. But if it is required, here it is:
Signed-off-by: S. Wendy Cheng (wcheng@redhat.com)
>
>------------------------------------------------------------------------
>
>--- linux-2/fs/lockd/svclock.c 2006-08-08 10:20:16.000000000 -0400
>+++ linux/fs/lockd/svclock.c 2006-08-09 10:28:35.000000000 -0400
>@@ -264,7 +264,9 @@ static void nlmsvc_free_block(struct kre
>
> nlmsvc_freegrantargs(block->b_call);
> nlm_release_call(block->b_call);
>- nlm_release_file(block->b_file);
>+ down(&file->f_sema);
>+ file->f_count--;
>+ up(&file->f_sema);
> kfree(block);
> }
>
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2006-08-09 18:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-09 18:13 [PATCH] fix recursive nlm_file_mutex deadlock Wendy Cheng
2006-08-09 18:32 ` Wendy Cheng [this message]
2006-08-09 21:45 ` Trond Myklebust
2006-08-09 22:07 ` Wendy Cheng
2006-08-09 22:41 ` Trond Myklebust
2006-08-09 23:57 ` Trond Myklebust
2006-08-10 15:24 ` Wendy Cheng
2006-08-10 15:40 ` Trond Myklebust
2006-08-10 16:05 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44DA2A44.1060001@redhat.com \
--to=wcheng@redhat.com \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.