]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Take the transport send lock before binding+connecting
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Mar 2019 16:22:39 +0000 (12:22 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Mar 2019 18:08:19 +0000 (14:08 -0400)
commitd3dbee0b4808f0e588060cde5387d797fe91a653
treea15b5f3630309e5c0433625e290d4ae46d1408fb
parent94e8d67a9e83c739dd573e88f372dedc7959989d
SUNRPC: Take the transport send lock before binding+connecting

Before trying to bind a port, ensure we grab the send lock to
ensure that we don't change the port while another task is busy
transmitting requests.
The connect code already takes the send lock in xprt_connect(),
but it is harmless to take it before that.

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