mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-31 21:39:36 +03:00
9f4c835a0e
what I would call effecient but it does have the advantage of being correct which is all I need right now. I added a regression test as well. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@57 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
11 lines
293 B
C
11 lines
293 B
C
#include <sys/atomic.h>
|
|
|
|
/* Global atomic lock declarations */
|
|
spinlock_t atomic64_lock = SPIN_LOCK_UNLOCKED;
|
|
spinlock_t atomic32_lock = SPIN_LOCK_UNLOCKED;
|
|
spinlock_t atomic_lock = SPIN_LOCK_UNLOCKED;
|
|
|
|
EXPORT_SYMBOL(atomic64_lock);
|
|
EXPORT_SYMBOL(atomic32_lock);
|
|
EXPORT_SYMBOL(atomic_lock);
|