Skip to content
Commit b17170b2 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

Simplify semaphore implementation



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: default avatarMatthew Wilcox <willy@linux.intel.com>
parent f1241c87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment