]> granicus.if.org Git - zfs/commit
Fix race in rwlock implementation which can occur when
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Mon, 7 Apr 2008 23:54:34 +0000 (23:54 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Mon, 7 Apr 2008 23:54:34 +0000 (23:54 +0000)
commit79f92663e36969c0b6b1f8520b1171285ae3e1d3
treeb9660ff597c7abb8044f035c80c4143a5d2ef582
parent728b9dd80074bedef6136b6acf5cb86d707172ea
Fix race in rwlock implementation which can occur when
your task is rescheduled to a different cpu after you've
taken the lock but before calling RW_LOCK_HELD is called.
We need the spinlock to ensure there is a wmb() there.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@68 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
include/sys/rwlock.h
modules/spl/spl-rwlock.c