SUNRPC: Fix races between socket connection and destroy code
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 17 Sep 2015 14:42:27 +0000 (10:42 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 17 Sep 2015 19:48:23 +0000 (15:48 -0400)
commit03c78827db35be20ffa71cb5ccd2cedb192f95d6
treee64e3c88c8ff27ec1ebda067b088ae4dbbca59d2
parent048883e0b934d9a5103d40e209cb14b7f33d2933
SUNRPC: Fix races between socket connection and destroy code

When we're destroying the socket transport, we need to ensure that
we cancel any existing delayed connection attempts, and order them
w.r.t. the call to xs_close().

Reported-by:"Suzuki K. Poulose" <suzuki.poulose@arm.com>
Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprtsock.c