linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Simplify credits handling for compound requests
@ 2019-02-28  6:24 Ronnie Sahlberg
  2019-02-28  6:24 ` [PATCH 1/5] cifs: change wait_for_free_request() to take flags as argument Ronnie Sahlberg
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ronnie Sahlberg @ 2019-02-28  6:24 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French, Pavel Shilovsky

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.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-06  0:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28  6:24 [PATCH 0/5] Simplify credits handling for compound requests Ronnie Sahlberg
2019-02-28  6:24 ` [PATCH 1/5] cifs: change wait_for_free_request() to take flags as argument Ronnie Sahlberg
2019-02-28  6:24 ` [PATCH 2/5] cifs: pass flags down into wait_for_free_credits() Ronnie Sahlberg
2019-02-28  6:24 ` [PATCH 3/5] cifs: wait_for_free_credits() make it possible to wait for >=1 credits Ronnie Sahlberg
2019-02-28  6:24 ` [PATCH 4/5] cifs: prevent starvation in wait_for_free_credits for multi-credit requests Ronnie Sahlberg
2019-03-02  1:41   ` Pavel Shilovsky
2019-03-06  0:07     ` ronnie sahlberg
2019-02-28  6:24 ` [PATCH 5/5] cifs: simplify how we handle credits in compond_send_recv() Ronnie Sahlberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).