diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-13 07:31:45 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-13 07:31:45 +0000 |
commit | 459181e3edfeaec7cb190679e1e6490b441ee45b (patch) | |
tree | 98a7f2a073c45904ccdb9d77d843be13cc0222f9 /lib/libc/stdlib/system.c | |
parent | ec5374265bec154d9330f861f2a089de4212a69d (diff) | |
download | FreeBSD-src-459181e3edfeaec7cb190679e1e6490b441ee45b.zip FreeBSD-src-459181e3edfeaec7cb190679e1e6490b441ee45b.tar.gz |
- Add a lock for protecting against msleep(bp, ...) wakeup(bp) races.
- Create a new function bdone() which sets B_DONE and calls wakup(bp). This
is suitable for use as b_iodone for buf consumers who are not going
through the buf cache.
- Create a new function bwait() which waits for the buf to be done at a set
priority and with a specific wmesg.
- Replace several cases where the above functionality was implemented
without locking with the new functions.
Diffstat (limited to 'lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions