Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-24 Thread Alex Shi
structure holds a pointer to the task, as well as the mutex that >> - the task is blocked on. It also has the plist node structures to >> - place the task in the waiter_list of a mutex as well as the >> - pi_list of a mutex owner task (described below). >>

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-24 Thread Alex Shi
structure holds a pointer to the task, as well as the mutex that >> - the task is blocked on. It also has the plist node structures to >> - place the task in the waiter_list of a mutex as well as the >> - pi_list of a mutex owner task (described below). >>

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-24 Thread Alex Shi
On 04/21/2017 11:47 PM, Peter Zijlstra wrote: > On Fri, Apr 21, 2017 at 10:12:53PM +0800, Alex Shi wrote: >> diff --git a/Documentation/locking/rt-mutex-design.txt >> b/Documentation/locking/rt-mutex-design.txt >> index 8666070..11beb55 100644 >> --- a/Documentation/locking/rt-mutex-design.txt

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-24 Thread Alex Shi
On 04/21/2017 11:47 PM, Peter Zijlstra wrote: > On Fri, Apr 21, 2017 at 10:12:53PM +0800, Alex Shi wrote: >> diff --git a/Documentation/locking/rt-mutex-design.txt >> b/Documentation/locking/rt-mutex-design.txt >> index 8666070..11beb55 100644 >> --- a/Documentation/locking/rt-mutex-design.txt

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Mathieu Poirier
On 21 April 2017 at 08:12, Alex Shi wrote: > The rt-mutex-design documents didn't gotten meaningful update from its > first version. Even after owner's pending bit was removed in commit > 8161239a8bcc > ("rtmutex: Simplify PI algorithm and make highest prio task get lock") >

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Mathieu Poirier
On 21 April 2017 at 08:12, Alex Shi wrote: > The rt-mutex-design documents didn't gotten meaningful update from its > first version. Even after owner's pending bit was removed in commit > 8161239a8bcc > ("rtmutex: Simplify PI algorithm and make highest prio task get lock") > and priority list

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Peter Zijlstra
On Fri, Apr 21, 2017 at 10:12:53PM +0800, Alex Shi wrote: > diff --git a/Documentation/locking/rt-mutex-design.txt > b/Documentation/locking/rt-mutex-design.txt > index 8666070..11beb55 100644 > --- a/Documentation/locking/rt-mutex-design.txt > +++ b/Documentation/locking/rt-mutex-design.txt > @@

Re: [PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Peter Zijlstra
On Fri, Apr 21, 2017 at 10:12:53PM +0800, Alex Shi wrote: > diff --git a/Documentation/locking/rt-mutex-design.txt > b/Documentation/locking/rt-mutex-design.txt > index 8666070..11beb55 100644 > --- a/Documentation/locking/rt-mutex-design.txt > +++ b/Documentation/locking/rt-mutex-design.txt > @@

[PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Alex Shi
The rt-mutex-design documents didn't gotten meaningful update from its first version. Even after owner's pending bit was removed in commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio task get lock") and priority list 'plist' changed to rbtree. So the documents are far late

[PATCH v2 1/3] rtmutex: update rt-mutex-design

2017-04-21 Thread Alex Shi
The rt-mutex-design documents didn't gotten meaningful update from its first version. Even after owner's pending bit was removed in commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio task get lock") and priority list 'plist' changed to rbtree. So the documents are far late