SUNRPC: Fix socket waits for write buffer space
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 15 Mar 2022 01:02:10 +0000 (21:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:13 +0000 (20:59 +0200)
commite04ef859d6c657e023702fe1109e4196a3e64011
tree0126501d766b2b87c28e49d86aa9b236bec993c4
parentd925b7e78b62805fcc5440d1521181c82b6f03cb
SUNRPC: Fix socket waits for write buffer space

[ Upstream commit 7496b59f588dd52886fdbac7633608097543a0a5 ]

The socket layer requires that we use the socket lock to protect changes
to the sock->sk_write_pending field and others.

Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/xprtsock.c