diff options
author | Pavel Shilovsky <[email protected]> | 2019-01-18 17:25:36 -0800 |
---|---|---|
committer | Steve French <[email protected]> | 2019-01-24 14:50:57 -0600 |
commit | ef68e831840c40c7d01b328b3c0f5d8c4796c232 (patch) | |
tree | 063f809b38252b893f71bcc101d115048b049b91 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b0b2cac7e244629e1a84a26d7eabb885fed7ff68 (diff) |
CIFS: Do not reconnect TCP session in add_credits()
When executing add_credits() we currently call cifs_reconnect()
if the number of credits is zero and there are no requests in
flight. In this case we may call cifs_reconnect() recursively
twice and cause memory corruption given the following sequence
of functions:
mid1.callback() -> add_credits() -> cifs_reconnect() ->
-> mid2.callback() -> add_credits() -> cifs_reconnect().
Fix this by avoiding to call cifs_reconnect() in add_credits()
and checking for zero credits in the demultiplex thread.
Cc: <[email protected]>
Signed-off-by: Pavel Shilovsky <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions