diff options
author | 2019-01-03 16:45:27 -0800 | |
---|---|---|
committer | 2019-01-11 07:14:40 -0600 | |
commit | 8a26f0f781f56d3016b34a2217e346973d067e7b (patch) | |
tree | bde15d0af3ad8c84e5a539a4d5ed2dc28d3317fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cifs: Fix potential OOB access of lock element array (diff) | |
download | linux-rng-8a26f0f781f56d3016b34a2217e346973d067e7b.tar.xz linux-rng-8a26f0f781f56d3016b34a2217e346973d067e7b.zip |
CIFS: Fix credits calculation for cancelled requests
If a request is cancelled, we can't assume that the server returns
1 credit back. Instead we need to wait for a response and process
the number of credits granted by the server.
Create a separate mid callback for cancelled request, parse the number
of credits in a response buffer and add them to the client's credits.
If the didn't get a response (no response buffer available) assume
0 credits granted. The latter most probably happens together with
session reconnect, so the client's credits are adjusted anyway.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions