Simplify semaphore implementation
authorMatthew Wilcox <matthew@wil.cx>
Fri, 14 Mar 2008 18:35:22 +0000 (14:35 -0400)
committerMatthew Wilcox <willy@linux.intel.com>
Thu, 17 Apr 2008 14:42:54 +0000 (10:42 -0400)
By removing the negative values of 'count' and relying on the wait_list to
indicate whether we have any waiters, we can simplify the implementation
by removing the protection against an unlikely race condition.  Thanks to
David Howells for his suggestions.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>

No differences found