diff options
author | Shyam Prasad N <[email protected]> | 2022-12-19 05:40:44 +0000 |
---|---|---|
committer | Steve French <[email protected]> | 2023-02-21 01:24:48 -0600 |
commit | ea90708d3cf3d0d92c02afe445ad463fb3c6bf10 (patch) | |
tree | 91dca5f122908052f5acfa1155421eb5b509df19 /lib/memory-notifier-error-inject.c | |
parent | e7388b8a1a5bdf47a9a46803a5686387c1ce060d (diff) |
cifs: use the least loaded channel for sending requests
Till now, we've used a simple round robin approach to
distribute the requests between the channels. This does
not work well if the channels consume the requests at
different speeds, even if the advertised speeds are the
same.
This change will allow the client to pick the channel
with least number of requests currently in-flight. This
will disregard the link speed, and select a channel
based on the current load of the channels.
For cases when all the channels are equally loaded,
fall back to the old round robin method.
Signed-off-by: Shyam Prasad N <[email protected]>
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions