From: Richard J.Farnsworth <rjf@maui.cs.washington.edu>
To: nfs@lists.sourceforge.net
Subject: Bug in NFS client handling of EJUKEBOX?
Date: Thu, 24 Feb 2005 06:05:38 +0000 (UTC)
Date: Wed Feb 23 22:06:48 2005 [thread overview]
Message-ID: <1109028596/rjf@maui.cs.washington.edu> (raw)
There seems to be a bug in the 2.6.11-rc code related to the handling
of nfsd's EJUNKBOX error return. The code for __rpc_execute in
net/sunrpc/sched.c looks like:
=============================
static int __rpc_execute(struct rpc_task *task)
{
int status = 0;
dprintk("RPC: %4d rpc_execute flgs %x\n",
task->tk_pid, task->tk_flags);
BUG_ON(RPC_IS_QUEUED(task));
restarted:
while (1) {
/*
* Garbage collection of pending timers...
*/
rpc_delete_timer(task);
.....
if (task->tk_exit) {
lock_kernel();
>>>> task->tk_exit(task);
unlock_kernel();
/* If tk_action is non-null, the user wants us to restart */
if (task->tk_action) {
if (!RPC_ASSASSINATED(task)) {
/* Release RPC slot and buffer memory */
if (task->tk_rqstp)
xprt_release(task);
rpc_free(task);
goto restarted;
}
printk(KERN_ERR "RPC: dead task tries to walk away.\n");
}
}
=============================
If the tk_exit procedure (e.g., nfs_read_done) called at ">>>>" above
detects EJUKEBOX as the result of the call, it will attempt to do
an rpc_restart and rpc_delay on the task. The rpc_delay will set a timer.
However, when the main loop is re-entered via the "goto restarted",
the first thing that happens is that all timers for the task are removed.
This results in the RPC task hanging in an uninterruptible wait.
Am I missing something here or is this really a problem?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2005-02-21 23:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-24 6:05 Richard J.Farnsworth [this message]
2005-07-11 9:34 ` [PATCH]: Fix EJUKEBOX handling Olaf Kirch
2005-07-11 12:09 ` Trond Myklebust
-- strict thread matches above, loose matches on Subject: below --
2005-02-24 6:04 Bug in NFS client handling of EJUKEBOX? Richard J.Farnsworth
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=1109028596/rjf@maui.cs.washington.edu \
--to=rjf@maui.cs.washington.edu \
--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.