diff options
author | mux <mux@FreeBSD.org> | 2003-03-17 17:26:39 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-03-17 17:26:39 +0000 |
commit | 000ffcaa0558093ea28d9abc496e128814676d63 (patch) | |
tree | 0750f796800394530e1e8f637beb375e48290cc6 /libexec | |
parent | cc6a784ca96ec28686595a8e482eeeca31139bb2 (diff) | |
download | FreeBSD-src-000ffcaa0558093ea28d9abc496e128814676d63.zip FreeBSD-src-000ffcaa0558093ea28d9abc496e128814676d63.tar.gz |
Tidy up the locking of the bounce pages structures.
- Use SYSINIT to initialize the structures instead of checking
total_bpages against 0 in alloc_bounce_pages(), which could lead
to several initializations being done at the same time.
- Add missing locking in bus_dmamap_load(), the bounce pages mutex
must be held when calling reserve_bounce_pages() and when touching
the bounce_map_waitinglist list.
- Remove the useless splhigh() and splx() calls.
- Assert that the bounce pages mutex is held in reserve_bounce_pages()
to catch regressions.
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions