All of lore.kernel.org
 help / color / mirror / Atom feed
* write_space and software kTLS
@ 2022-03-14 21:35 Chuck Lever III
  2022-03-15  0:06 ` Trond Myklebust
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Lever III @ 2022-03-14 21:35 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Linux NFS Mailing List

Hey Trond-

I've made some progress getting RPC-with-TLS working in
the Linux NFS client, but I recently hit an interesting
snag and could use a little advice.

The software kTLS infrastructure uses do_tcp_sendpages()
under the covers, and that function is clearing
SOCKWQ_ASYNC_NOSPACE from under xs_nospace(). That
prevents xs_run_error_worker() from waking up xprt->sending,
stalling an RPC transport waiting for more socket write
space. I'm not sure how to address this, and I'm interested
in your opinion.

For example, why check that flag rather than just waking
up xprt->sending unconditionally?

Also just for my own understanding of how the write_space
mechanism is supposed to work for RPC, I instrumented the
code that bumps and decrements sk_write_pending, and found
that under normal workloads, the value of that field goes
negative and stays there. I'm not sure that's intended...?


--
Chuck Lever




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

end of thread, other threads:[~2022-03-15 14:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14 21:35 write_space and software kTLS Chuck Lever III
2022-03-15  0:06 ` Trond Myklebust
2022-03-15 14:01   ` Chuck Lever III

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.