summaryrefslogtreecommitdiff
path: root/mm/z3fold.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2018-12-01 23:18:00 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-21 14:13:13 +0100
commitc3f68415c9871e4828255ffb52b01ed4fe28dca1 (patch)
tree8ee7f232e2c59c2d0c8881a93115e63fb43bab4e /mm/z3fold.c
parent76413fbfc7c1193b9b5b2a0fde8a90003adb32d3 (diff)
downloadlinux-exynos-c3f68415c9871e4828255ffb52b01ed4fe28dca1.tar.gz
linux-exynos-c3f68415c9871e4828255ffb52b01ed4fe28dca1.tar.bz2
linux-exynos-c3f68415c9871e4828255ffb52b01ed4fe28dca1.zip
SUNRPC: Fix a potential race in xprt_connect()
[ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions