summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_changer.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-05-04 12:56:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-05-04 12:56:16 +0000
commit44edd472c011431a2138ccc1a14a6a7b7d8d53e5 (patch)
tree72fcd1e3b46a304d8091d7386c32cf980ea1655b /sys/scsi/scsi_changer.h
parent3c946212778ac0ba0a06f07ac526f246e7f4932a (diff)
- Rename rw_test_and_set to rw_cas, since most litterature uses the
test_and_set name for some other operation, while cas is generally used for compare and set (cmpxchg in intel land, cas in sparc land). - Make rw locks properly MP safe (provided that rw_cas is implemented in MD code). Most operations were MP safe except the sleep where we could have set the "I'm sleeping" flag before actually going to sleep so that the wakeup could miss us. Now, using the split tsleep, we first setup the sleep (put us on the sleep queues), then set the flag aborting the sleep if the lock has changed and then finally go to sleep. miod@ ok (and he's been prodding me for days to get this in)
Diffstat (limited to 'sys/scsi/scsi_changer.h')
0 files changed, 0 insertions, 0 deletions