linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nfsd: managing pages under network I/O
@ 2016-10-12 17:42 Chuck Lever
  2016-10-13  6:35 ` Christoph Hellwig
  2016-10-19 17:26 ` J. Bruce Fields
  0 siblings, 2 replies; 9+ messages in thread
From: Chuck Lever @ 2016-10-12 17:42 UTC (permalink / raw)
  To: Linux NFS Mailing List

I'm studying the way that the ->recvfrom and ->sendto calls work
for RPC-over-RDMA.

The ->sendto path moves pages out of the svc_rqst before posting
I/O (RDMA Write and Send). Once the work is posted, ->sendto
returns, and looks like svc_rqst is released at that point. The
subsequent completion of the Send then releases those moved pages.

I'm wondering if the transport can be simplified: instead of
moving pages around, ->sendto could just wait until the Write and
Send activity is complete, then return. The upper layer then
releases everything.

Another option would be for ->sendto to return a value that means
the transport will release the svc_rqst and pages.

Or, the svc_rqst could be reference counted.

Anyone have thoughts about this?

--
Chuck Lever




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-19 19:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 17:42 nfsd: managing pages under network I/O Chuck Lever
2016-10-13  6:35 ` Christoph Hellwig
2016-10-13 13:36   ` Chuck Lever
2016-10-13 14:32     ` Chuck Lever
2016-10-19 17:26 ` J. Bruce Fields
2016-10-19 18:28   ` Chuck Lever
2016-10-19 19:16     ` J. Bruce Fields
2016-10-19 19:21       ` Chuck Lever
2016-10-19 19:26         ` 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;
as well as URLs for NNTP newsgroup(s).