lkml.org 
[lkml]   [2019]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH-tip v7 00/20] locking/rwsem: Rwsem rearchitecture part 2
On Sun, Apr 28, 2019 at 4:12 PM Waiman Long <longman@redhat.com> wrote:
>
> I implemented your suggestion in patch 1 as it will produce simpler and
> faster code. However, one of the changes in my patchset is to wake up
> all the readers in the wait list. This means I have to jump over the
> writers and wake up the readers behind them as well. See patch 11 for
> details. As a result, I have to revert back to use list_add_tail() and
> list_for_each_entry_safe() for the first pass. That is why the diff for
> the whole patchset is just the below change. It is done on purpose, not
> an omission.

Ahh, ok. In that case I suspect the clever code isn't even worth it,
since it very much depends on just splitting the list in a fixed
place.

Linus

\
 
 \ /
  Last update: 2019-04-29 02:11    [W:0.374 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site