From: "J. Bruce Fields" <bfields@fieldses.org>
To: Tom Tucker <tom@opengridcomputing.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/3] svcrdma: Remove extra check for XPT_DEAD bit in svc_xprt_enqueue
Date: Tue, 6 May 2008 18:04:13 -0400 [thread overview]
Message-ID: <20080506220413.GR13484@fieldses.org> (raw)
In-Reply-To: <12097450863435-git-send-email-tom@opengridcomputing.com>
On Fri, May 02, 2008 at 11:18:05AM -0500, Tom Tucker wrote:
> Remove a redundant check for the XPT_DEAD bit in the svc_xprt_enqueue
> function. This same bit is checked below while holding the pool lock
Yeah, seems pointless. I wonder how it got there.
--b.
> and prints a debug message if found to be dead.
>
> Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
>
> ---
> net/sunrpc/svc_xprt.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
> index 74e52d4..fb8a785 100644
> --- a/net/sunrpc/svc_xprt.c
> +++ b/net/sunrpc/svc_xprt.c
> @@ -296,8 +296,6 @@ void svc_xprt_enqueue(struct svc_xprt *xprt)
> if (!(xprt->xpt_flags &
> ((1<<XPT_CONN)|(1<<XPT_DATA)|(1<<XPT_CLOSE)|(1<<XPT_DEFERRED))))
> return;
> - if (test_bit(XPT_DEAD, &xprt->xpt_flags))
> - return;
>
> cpu = get_cpu();
> pool = svc_pool_for_cpu(xprt->xpt_server, cpu);
prev parent reply other threads:[~2008-05-06 22:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <12097450861136-git-send-email-tom@opengridcomputing.com>
[not found] ` <12097450861293-git-send-email-tom@opengridcomputing.com>
2008-05-06 21:59 ` [PATCH 1/3] svcrdma: Remove redunant call to xpo_release_rqst method J. Bruce Fields
2008-05-07 15:08 ` Tom Tucker
[not found] ` <1210172886.27493.30.camel-SMNkleLxa3ZimH42XvhXlA@public.gmane.org>
2008-05-07 16:26 ` J. Bruce Fields
[not found] ` <12097450863435-git-send-email-tom@opengridcomputing.com>
2008-05-06 22:04 ` J. Bruce Fields [this message]
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=20080506220413.GR13484@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=tom@opengridcomputing.com \
/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.