[PATCH v2] rwlock: prevent readers from starving writers
David Marchand
david.marchand at redhat.com
Mon Oct 3 12:01:32 CEST 2022
On Tue, Jul 19, 2022 at 10:28 PM Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> Modify reader/writer lock to avoid starvation of writer. The previous
> implementation would cause a writer to get starved if readers kept
> acquiring the lock. The new version uses an additional bit to indicate
> that a writer is waiting and which keeps readers from starving the
> writer.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list