All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
To: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 0/7] Server-side NFS/RDMA changes for v4.11
Date: Mon, 6 Feb 2017 17:39:18 -0500	[thread overview]
Message-ID: <20170206223918.GE19704@fieldses.org> (raw)
In-Reply-To: <20170131184623.14185.35480.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>

On Tue, Jan 31, 2017 at 01:52:42PM -0500, Chuck Lever wrote:
> These are largely clean-ups, except for the last patch. Switching
> completion polling from soft IRQ to a worker thread has a few
> benefits:
> 
> - svcrdma's completion handlers invoke svc_xprt_put(). We discovered
> recently svc_xprt_put() is supposed to be called only in a process
> context. This will become more important when NFS/RDMA supports
> multi-path.
> 
> - eventually we'd like to allocate pages for RDMA Read in the
> completion handler, and not defer RDMA Read to svc_rdma_recvfrom.
> Using GFP_KERNEL can sleep, which is not allowed in soft IRQ
> context.
> 
> - several places where BH's are disabled can be converted to simple
> spin_locks.
> 
> Bruce, would you consider these for v4.11?

Sure, looks fine to me.

Looks like you had a minor edit or two from Christoph's review, so I'm
assuming you'll resend.

--b.

> 
> 
> Available in the "nfsd-rdma-for-4.11" topic branch of this git repo:
> 
> git://git.linux-nfs.org/projects/cel/cel-2.6.git
> 
> 
> Or for browsing:
> 
> http://git.linux-nfs.org/?p=cel/cel-2.6.git;a=log;h=refs/heads/nfsd-rdma-for-4.11
> 
> 
> Changes since v1:
> - Rebased on v4.10-rc6
> 
> ---
> 
> Chuck Lever (7):
>       svcrdma: Another sendto chunk list parsing update
>       svcrdma: Clean up RPC-over-RDMA Reply header encoder
>       svcrdma: Clean up RPC-over-RDMA Call header decoder
>       svcrdma: Clean up backchannel send header encoding
>       svcrdma: Remove unused sc_dto_q field
>       svcrdma: Combine list fields in struct svc_rdma_op_ctxt
>       svcrdma: Poll CQs in "workqueue" mode
> 
> 
>  include/linux/sunrpc/rpc_rdma.h            |    9 +
>  include/linux/sunrpc/svc_rdma.h            |   17 +
>  net/sunrpc/xprtrdma/svc_rdma_backchannel.c |   17 +
>  net/sunrpc/xprtrdma/svc_rdma_marshal.c     |  320 +++++++++++-----------------
>  net/sunrpc/xprtrdma/svc_rdma_recvfrom.c    |   20 +-
>  net/sunrpc/xprtrdma/svc_rdma_sendto.c      |   13 -
>  net/sunrpc/xprtrdma/svc_rdma_transport.c   |   61 +++--
>  7 files changed, 199 insertions(+), 258 deletions(-)
> 
> --
> Chuck Lever
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org
Subject: Re: [PATCH v2 0/7] Server-side NFS/RDMA changes for v4.11
Date: Mon, 6 Feb 2017 17:39:18 -0500	[thread overview]
Message-ID: <20170206223918.GE19704@fieldses.org> (raw)
In-Reply-To: <20170131184623.14185.35480.stgit@klimt.1015granger.net>

On Tue, Jan 31, 2017 at 01:52:42PM -0500, Chuck Lever wrote:
> These are largely clean-ups, except for the last patch. Switching
> completion polling from soft IRQ to a worker thread has a few
> benefits:
> 
> - svcrdma's completion handlers invoke svc_xprt_put(). We discovered
> recently svc_xprt_put() is supposed to be called only in a process
> context. This will become more important when NFS/RDMA supports
> multi-path.
> 
> - eventually we'd like to allocate pages for RDMA Read in the
> completion handler, and not defer RDMA Read to svc_rdma_recvfrom.
> Using GFP_KERNEL can sleep, which is not allowed in soft IRQ
> context.
> 
> - several places where BH's are disabled can be converted to simple
> spin_locks.
> 
> Bruce, would you consider these for v4.11?

Sure, looks fine to me.

Looks like you had a minor edit or two from Christoph's review, so I'm
assuming you'll resend.

--b.

> 
> 
> Available in the "nfsd-rdma-for-4.11" topic branch of this git repo:
> 
> git://git.linux-nfs.org/projects/cel/cel-2.6.git
> 
> 
> Or for browsing:
> 
> http://git.linux-nfs.org/?p=cel/cel-2.6.git;a=log;h=refs/heads/nfsd-rdma-for-4.11
> 
> 
> Changes since v1:
> - Rebased on v4.10-rc6
> 
> ---
> 
> Chuck Lever (7):
>       svcrdma: Another sendto chunk list parsing update
>       svcrdma: Clean up RPC-over-RDMA Reply header encoder
>       svcrdma: Clean up RPC-over-RDMA Call header decoder
>       svcrdma: Clean up backchannel send header encoding
>       svcrdma: Remove unused sc_dto_q field
>       svcrdma: Combine list fields in struct svc_rdma_op_ctxt
>       svcrdma: Poll CQs in "workqueue" mode
> 
> 
>  include/linux/sunrpc/rpc_rdma.h            |    9 +
>  include/linux/sunrpc/svc_rdma.h            |   17 +
>  net/sunrpc/xprtrdma/svc_rdma_backchannel.c |   17 +
>  net/sunrpc/xprtrdma/svc_rdma_marshal.c     |  320 +++++++++++-----------------
>  net/sunrpc/xprtrdma/svc_rdma_recvfrom.c    |   20 +-
>  net/sunrpc/xprtrdma/svc_rdma_sendto.c      |   13 -
>  net/sunrpc/xprtrdma/svc_rdma_transport.c   |   61 +++--
>  7 files changed, 199 insertions(+), 258 deletions(-)
> 
> --
> Chuck Lever

  parent reply	other threads:[~2017-02-06 22:39 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 18:52 [PATCH v2 0/7] Server-side NFS/RDMA changes for v4.11 Chuck Lever
2017-01-31 18:52 ` Chuck Lever
     [not found] ` <20170131184623.14185.35480.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-01-31 18:52   ` [PATCH v2 1/7] svcrdma: Another sendto chunk list parsing update Chuck Lever
2017-01-31 18:52     ` Chuck Lever
2017-01-31 18:53   ` [PATCH v2 2/7] svcrdma: Clean up RPC-over-RDMA Reply header encoder Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185302.14185.10775.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:25       ` Christoph Hellwig
2017-02-01 18:25         ` Christoph Hellwig
     [not found]         ` <20170201182518.GA32532-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2017-02-01 19:39           ` Chuck Lever
2017-02-01 19:39             ` Chuck Lever
2017-01-31 18:53   ` [PATCH v2 3/7] svcrdma: Clean up RPC-over-RDMA Call header decoder Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185310.14185.76931.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:28       ` Christoph Hellwig
2017-02-01 18:28         ` Christoph Hellwig
2017-01-31 18:53   ` [PATCH v2 4/7] svcrdma: Clean up backchannel send header encoding Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185318.14185.90053.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:29       ` Christoph Hellwig
2017-02-01 18:29         ` Christoph Hellwig
     [not found]         ` <20170201182957.GC32532-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2017-02-01 19:48           ` Chuck Lever
2017-02-01 19:48             ` Chuck Lever
2017-01-31 18:53   ` [PATCH v2 5/7] svcrdma: Remove unused sc_dto_q field Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185326.14185.48454.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:30       ` Christoph Hellwig
2017-02-01 18:30         ` Christoph Hellwig
2017-01-31 18:53   ` [PATCH v2 6/7] svcrdma: Combine list fields in struct svc_rdma_op_ctxt Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185335.14185.80060.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:30       ` Christoph Hellwig
2017-02-01 18:30         ` Christoph Hellwig
2017-01-31 18:53   ` [PATCH v2 7/7] svcrdma: Poll CQs in "workqueue" mode Chuck Lever
2017-01-31 18:53     ` Chuck Lever
     [not found]     ` <20170131185343.14185.76984.stgit-Hs+gFlyCn65vLzlybtyyYzGyq/o6K9yX@public.gmane.org>
2017-02-01 18:31       ` Christoph Hellwig
2017-02-01 18:31         ` Christoph Hellwig
2017-02-06 22:39   ` J. Bruce Fields [this message]
2017-02-06 22:39     ` [PATCH v2 0/7] Server-side NFS/RDMA changes for v4.11 J. Bruce Fields
     [not found]     ` <20170206223918.GE19704-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2017-02-06 22:48       ` Chuck Lever
2017-02-06 22:48         ` Chuck Lever

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=20170206223918.GE19704@fieldses.org \
    --to=bfields-uc3wqj2krung9huczpvpmw@public.gmane.org \
    --cc=chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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.