* [PATCH] svcrdma: Initialize the context free list for listeners
@ 2008-05-23 15:32 Tom Tucker
[not found] ` <1211556779.4114.17.camel-SMNkleLxa3ZimH42XvhXlA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tucker @ 2008-05-23 15:32 UTC (permalink / raw)
To: Bruce Fields; +Cc: linux-nfs
Move the initialization of the sc_ctxt_free list to the
client/listener generic bit of the init logic. This is
necessary to avoid a bug check when shutting down a listening
endpoint when list debug is enabled. This bug was introduced
when the context cache was converted to use Linux lists.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
---
net/sunrpc/xprtrdma/svc_rdma_transport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index 54b2126..2c2f5f6 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -446,7 +446,6 @@ static void create_context_cache(struct svcxprt_rdma *xprt,
xprt->sc_ctxt_cnt = 0;
atomic_set(&xprt->sc_ctxt_used, 0);
- INIT_LIST_HEAD(&xprt->sc_ctxt_free);
for (i = 0; i < ctxt_count; i++) {
ctxt = kmalloc(sizeof(*ctxt), GFP_KERNEL);
if (ctxt) {
@@ -496,6 +495,7 @@ static struct svcxprt_rdma *rdma_create_xprt(struct svc_serv *serv,
atomic_set(&cma_xprt->sc_sq_count, 0);
atomic_set(&cma_xprt->sc_ctxt_used, 0);
+ INIT_LIST_HEAD(&cma_xprt->sc_ctxt_free);
if (!listener) {
int reqs = cma_xprt->sc_max_requests;
create_context_cache(cma_xprt,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] svcrdma: Initialize the context free list for listeners
[not found] ` <1211556779.4114.17.camel-SMNkleLxa3ZimH42XvhXlA@public.gmane.org>
@ 2008-05-25 19:03 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2008-05-25 19:03 UTC (permalink / raw)
To: Tom Tucker; +Cc: linux-nfs
On Fri, May 23, 2008 at 10:32:59AM -0500, Tom Tucker wrote:
> Move the initialization of the sc_ctxt_free list to the
> client/listener generic bit of the init logic. This is
> necessary to avoid a bug check when shutting down a listening
> endpoint when list debug is enabled. This bug was introduced
> when the context cache was converted to use Linux lists.
OK.--b.
>
> Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
> ---
> net/sunrpc/xprtrdma/svc_rdma_transport.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
> index 54b2126..2c2f5f6 100644
> --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
> +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
> @@ -446,7 +446,6 @@ static void create_context_cache(struct svcxprt_rdma *xprt,
> xprt->sc_ctxt_cnt = 0;
> atomic_set(&xprt->sc_ctxt_used, 0);
>
> - INIT_LIST_HEAD(&xprt->sc_ctxt_free);
> for (i = 0; i < ctxt_count; i++) {
> ctxt = kmalloc(sizeof(*ctxt), GFP_KERNEL);
> if (ctxt) {
> @@ -496,6 +495,7 @@ static struct svcxprt_rdma *rdma_create_xprt(struct svc_serv *serv,
> atomic_set(&cma_xprt->sc_sq_count, 0);
> atomic_set(&cma_xprt->sc_ctxt_used, 0);
>
> + INIT_LIST_HEAD(&cma_xprt->sc_ctxt_free);
> if (!listener) {
> int reqs = cma_xprt->sc_max_requests;
> create_context_cache(cma_xprt,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-25 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 15:32 [PATCH] svcrdma: Initialize the context free list for listeners Tom Tucker
[not found] ` <1211556779.4114.17.camel-SMNkleLxa3ZimH42XvhXlA@public.gmane.org>
2008-05-25 19:03 ` 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