lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4] locking/rwsem: Make handoff bit handling more consistent
On Mon, Nov 15, 2021 at 05:29:10PM -0500, Waiman Long wrote:
>
> The handoff_set flag can only be true for a first waiter. A random waiter in
> the middle of a wait queue will never has this flag set.
>
> This flag is set in two places in rwsem_try_write_lock():

Bah, I thought it would unconditionally propagate the bit from @count. I
missed the early exit :/

\
 
 \ /
  Last update: 2021-11-16 02:40    [W:0.050 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site