diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-12-02 07:18:00 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-12-02 17:43:57 +0300 |
commit | 0a9a4304f3614e25d9de9b63502ca633c01c0d70 (patch) | |
tree | 683288309ec67126269473e0d6a63ae01abbabae /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 71700bb96047f68a0aae3932466fc7c9ad5ce6c0 (diff) | |
download | linux-0a9a4304f3614e25d9de9b63502ca633c01c0d70.tar.xz |
SUNRPC: Fix a potential race in xprt_connect()
If an asynchronous connection attempt completes while another task is
in xprt_connect(), then the call to rpc_sleep_on() could end up
racing with the call to xprt_wake_pending_tasks().
So add a second test of the connection state after we've put the
task to sleep and set the XPRT_CONNECTING flag, when we know that there
can be no asynchronous connection attempts still in progress.
Fixes: 0b9e79431377d ("SUNRPC: Move the test for XPRT_CONNECTING into...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions