idr: Protect data structures with a lwkt_token
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 6 Oct 2013 13:04:57 +0000 (15:04 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 6 Oct 2013 13:05:27 +0000 (15:05 +0200)
commitb68b47fb4a1a1986f632aaaacd4be9a274a5bfd1
treec77c07c229033eb0f01ebde7125a242c73fda9bb
parentf69089a46ec27db494e0c4db0290aa777804be19
idr: Protect data structures with a lwkt_token

Using spinlocks is not a good idea when you have to allocate memory
sys/libkern/idr.c
sys/sys/idr.h