Messages in this thread | | | Date | Thu, 3 Jul 2014 08:35:49 -0700 | Subject | Re: [RFC] Cancellable MCS spinlock rework | From | Linus Torvalds <> |
| |
On Thu, Jul 3, 2014 at 8:31 AM, Linus Torvalds <torvalds@linux-foundation.org> wrote: > > I don't think we'll support 2 _billion_ processes/threads waiting on > the same semaphore any time soon, so the 'long' seems a bit of an > overkill on 64-bit architectures.
Oh, never mind. The 'struct semaphore' uses it as just a plain count, but the rwsem ends up splitting up the bits for readers/writers, so we actually do want the full 64-bit value there.
Linus
| |