SUNRPC: Allow calls to xprt_transmit() to drain the entire transmit queue
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 29 Aug 2018 21:40:55 +0000 (17:40 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:15 +0000 (15:35 -0400)
commit89f90fe1ad8bc7cde7f1859abdc392d02ee952de
tree2c164cb578ed7c0e85b659f1b339cfbfe8a26a81
parent86aeee0eb6c316e75d3b5d148177d4c01b81c977
SUNRPC: Allow calls to xprt_transmit() to drain the entire transmit queue

Rather than forcing each and every RPC task to grab the socket write
lock in order to send itself, we allow whichever task is holding the
write lock to attempt to drain the entire transmit queue.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprt.c