]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:03:11 +0000 (20:03 +0200)
commitf8fc78a5eeda855be1ef640dc9acbfdb60d76152
treec81e4b2fe7611bb4b753d9f3dce65909955e890d
parentffe1d40aec3f6f8cc620369ba07eb5e9bd449d85
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