RE: condvar wakeups
Ingo Molnar <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 8 May 2003, Perez-Gonzalez, Inaky wrote: > Call me pedantic, please, but if we are attaching so many waiters to a > new page, shall not we unpin q->page before requeuing, then pin that new > page once per waiter and then at the tail of futex_wait() unpin > q->page? > > Unless I am missing anything, once we exit from requeue(), page2 is not > pinned by anyone, so it could be perfectly be taken out to swap space > for a walk. you are completely right - the counts are messed up. Ingo