Messages in this thread | | | Date | Tue, 6 Apr 2010 17:53:11 +0100 | From | Alan Cox <> | Subject | Re: [PATCH V2 0/6][RFC] futex: FUTEX_LOCK with optional adaptive spinning |
| |
> That works for the uncontended case. For the contended case, the waiter > and the owner have to go into the kernel and back out to transfer > ownership.
If you insist on doing it that way yes, but knowing the lock owner is likely to be away for a while also lets you do things like punt work either by picking another work package in the meantime, or by queueing the work you can't do on a list the pre-empted lock owner will review before dropping the lock.
| |