summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-09-27 10:30:03 +0000
committerbde <bde@FreeBSD.org>2003-09-27 10:30:03 +0000
commit6d69006c55a01bc62f55b1d4623fc13457564a16 (patch)
tree623e2b5eb5fd85613c96788340a532932e53dac4 /sys/dev/isp
parent573654b93e7cd2a1ee0d02ce53d6025d43a4c277 (diff)
downloadFreeBSD-src-6d69006c55a01bc62f55b1d4623fc13457564a16.zip
FreeBSD-src-6d69006c55a01bc62f55b1d4623fc13457564a16.tar.gz
Quick fix for bitrot in locking in the SMP case. cd_getreg() and
cd_setreg() were still using !(read_eflags() & PSL_I) as the condition for the lock hidden by COM_LOCK() (if any) being held. This worked when spin mutexes and/or critical_enter() used hard interrupt disablement, but it has caused recursion on the non-recursive mutex com_mtx since all relevant interrupt disablement became soft. The recursion is harmless unless there are other bugs, but it breaks an invariant so it is fatal if spinlocks are witnessed.
Diffstat (limited to 'sys/dev/isp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud