Simplify credits handling for compound requests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | cifs: change wait_for_free_request() to take flags as argumentfs/ | +17 | 0 replies | |
| 2/5 | cifs: pass flags down into wait_for_free_credits()fs/ | +14 | 0 replies | |
| 3/5 | cifs: wait_for_free_credits() make it possible to wait for >=1 creditsfs/ fs/ fs/ | +10 | 0 replies | |
| 4/5 | cifs: prevent starvation in wait_for_free_credits for multi-credit requestsfs/ | +23 | 2 replies | |
| 5/5 | cifs: simplify how we handle credits in compond_send_recv()fs/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Simplify credits handling for compound requests
Pavel, Steve,
Here is an updated series that tries to simplify the handling of allocating credits to compound requests by using a new method to atomically wait for n>=1 credits.
Aside from simplifying compound_send_recv() it also solves a potential (but very unlikely) deadlock that could happen in the current code.
The first two patches are just rearranging the code and changing signatures. There should not be any change in behaviour from them.
The third patch makes it possible to wait for >1 credits atomically however no codepath yet uses this.
Fourth patch is to address a potential starvation issue that could happen IF there are requests for >1 credits.
Fifth patch changes compound_send_recv() to ask for the required n credits in one atomic wait.