aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorLong Li <[email protected]>2018-03-30 15:16:35 -0700
committerSteve French <[email protected]>2018-04-01 20:24:40 -0500
commit48f238a79f668f8ff013024d83010de551833d7f (patch)
tree94ad861735b92bf1afca2979926d7eab30598387 /lib/test_overflow.c
parent2a18287b54f8654d9835cddfc80a12fd73162fc0 (diff)
cifs: smbd: avoid reconnect lockup
During transport reconnect, other processes may have registered memory and blocked on transport. This creates a deadlock situation because the transport resources can't be freed, and reconnect is blocked. Fix this by returning to upper layer on timeout. Before returning, transport status is set to reconnecting so other processes will release memory registration resources. Upper layer will retry the reconnect. This is not in fast I/O path so setting the timeout to 5 seconds. Signed-off-by: Long Li <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]> CC: Stable <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions