Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 585624 Details for
Bug 822189
[RHEL6.3][kernel debug] Connectathon 'Special' test failures NFSv2,3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch -- fix loss of task->tk_status after rpc_delay call in xprt_alloc_slot
0001-BZ-822189-sunrpc-fix-loss-of-task-tk_status-after-rp.patch (text/plain), 1.84 KB, created by
Jeff Layton
on 2012-05-20 11:06:57 UTC
(
hide
)
Description:
patch -- fix loss of task->tk_status after rpc_delay call in xprt_alloc_slot
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2012-05-20 11:06:57 UTC
Size:
1.84 KB
patch
obsolete
>From 92aa2f3df7256a153bc70e6210c6168434bd37b2 Mon Sep 17 00:00:00 2001 >From: Trond Myklebust <Trond.Myklebust@netapp.com> >Date: Sun, 20 May 2012 07:02:08 -0400 >Subject: [RHEL6 PATCH] BZ#822189: sunrpc: fix loss of task->tk_status after rpc_delay call in xprt_alloc_slot > >xprt_alloc_slot will call rpc_delay() to make the task wait a bit before >retrying when it gets back an -ENOMEM error from xprt_dynamic_alloc_slot. >The problem is that rpc_delay will clear the task->tk_status, causing >call_reserveresult to abort the task. > >The solution is simply to let call_reserveresult handle the ENOMEM error >directly. > >Reported-by: Jeff Layton <jlayton@redhat.com> >Cc: stable@vger.kernel.org [>= 3.1] >Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> >--- > net/sunrpc/clnt.c | 2 ++ > net/sunrpc/xprt.c | 5 +++-- > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c >index 0e2b868..86376bd 100644 >--- a/net/sunrpc/clnt.c >+++ b/net/sunrpc/clnt.c >@@ -962,6 +962,8 @@ call_reserveresult(struct rpc_task *task) > } > > switch (status) { >+ case -ENOMEM: >+ rpc_delay(task, HZ >> 2); > case -EAGAIN: /* woken up; retry */ > task->tk_action = call_reserve; > return; >diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c >index 3dda0dd..ae0bdc9 100644 >--- a/net/sunrpc/xprt.c >+++ b/net/sunrpc/xprt.c >@@ -979,15 +979,16 @@ static void xprt_alloc_slot(struct rpc_task *task) > goto out_init_req; > switch (PTR_ERR(req)) { > case -ENOMEM: >- rpc_delay(task, HZ >> 2); > dprintk("RPC: dynamic allocation of request slot " > "failed! Retrying\n"); >+ task->tk_status = -ENOMEM; > break; > case -EAGAIN: > rpc_sleep_on(&xprt->backlog, task, NULL); > dprintk("RPC: waiting for request slot\n"); >+ default: >+ task->tk_status = -EAGAIN; > } >- task->tk_status = -EAGAIN; > return; > out_init_req: > task->tk_status = 0; >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 822189
:
584998
|
585018
|
585310
| 585624