Fix spinlock_trylock's return value
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 8 Sep 2016 17:49:27 +0000 (13:49 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Sep 2016 18:35:09 +0000 (14:35 -0400)
commit6951efbc295e02d795fabb4b91c9de332a0d7dae
treedbcf6be2e79cc2d5d193d1560b7bea13174d3f4c
parent1e91298d51fd2b8ac3e0ac18797fbcfd8703c5b9
Fix spinlock_trylock's return value

We should be returning TRUE when we successfully lock the lock, not EBUSY.
This is saner, and more in line with other locking APIs.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/linux-lock-hacks.h
user/parlib/include/parlib/spinlock.h
user/parlib/spinlock.c