diff options
author | truckman <truckman@FreeBSD.org> | 2004-09-10 09:37:06 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2004-09-10 09:37:06 +0000 |
commit | 932b912ae28a5bfd99565c98c1d2a0799b69c4bb (patch) | |
tree | bc20eb9426b51529b79b005699a49fc1d97370e0 /games | |
parent | ab156e020418ffb34fd399a81160285f104f48d9 (diff) | |
download | FreeBSD-src-932b912ae28a5bfd99565c98c1d2a0799b69c4bb.zip FreeBSD-src-932b912ae28a5bfd99565c98c1d2a0799b69c4bb.tar.gz |
Convert sndstat_lock from a mutex to an sx lock. sndstat_read()
holds sndstat_lock across a call to uiomove(), which is not legal
to do with a mutex because of the possibility that the data transfer
could sleep because of a page fault. It is not possible to just
unlock the mutex for the uiomove() call without introducing another
locking mechanism to prevent the body of sndstat_read() from being
re-entered. Converting sndstat_lock to an sx lock is the least
complicated change.
This is a candidate for RELENG_5.
LOR: 030
MFC after: 4 days
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions