rwsem: make the waiter type an enumeration rather than a bitmask
authorMichel Lespinasse <walken@google.com>
Tue, 7 May 2013 13:45:49 +0000 (06:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 May 2013 14:20:15 +0000 (07:20 -0700)
commite2d57f782c8a906f80d5b5f54da803c1638929d7
tree96a3d2f26b8257d39db40ec4cd3cd52b3ef14588
parentc1be5a5b1b355d40e6cf79cc979eb66dafa24ad1
rwsem: make the waiter type an enumeration rather than a bitmask

We are not planning to add some new waiter flags, so we can convert the
waiter type into an enumeration.

Background: David Howells suggested I do this back when I tried adding
a new waiter type for unfair readers. However, I believe the cleanup
applies regardless of that use case.

Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/rwsem-spinlock.c
lib/rwsem.c