Messages in this thread | | | Date | Thu, 3 Jul 2014 08:31:22 -0700 | Subject | Re: [RFC] Cancellable MCS spinlock rework | From | Linus Torvalds <> |
| |
On Wed, Jul 2, 2014 at 9:39 PM, Jason Low <jason.low2@hp.com> wrote: > > And due to padding, the additional modification below reduces the > size of struct rw_semaphore by 64 bits on my machine :)
Well, I think you could also make 'count' just be 'int' instead of 'long'.
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.
Linus.
| |