| 5001 | } |
| 5002 | |
| 5003 | void |
| 5004 | bwait(struct buf *bp, u_char pri, const char *wchan) |
| 5005 | { |
| 5006 | struct mtx *mtxp; |
| 5007 | |
| 5008 | mtxp = mtx_pool_find(mtxpool_sleep, bp); |
| 5009 | mtx_lock(mtxp); |
| 5010 | while ((bp->b_flags & B_DONE) == 0) |
| 5011 | msleep(bp, mtxp, pri, wchan, 0); |
| 5012 | mtx_unlock(mtxp); |
| 5013 | } |
| 5014 | |
| 5015 | int |
| 5016 | bufsync(struct bufobj *bo, int waitfor) |
no test coverage detected