Lines Matching refs:b_sem
307 ASSERT(SEMA_HELD(&bp->b_sem)); in bwrite_common()
376 ASSERT(SEMA_HELD(&bp->b_sem)); in bdwrite()
396 ASSERT(SEMA_HELD(&bp->b_sem)); in bawrite()
417 ASSERT(SEMA_HELD(&bp->b_sem)); in brelse()
434 sema_destroy(&bp->b_sem); in brelse()
517 sema_v(&bp->b_sem); in brelse()
606 if (!sema_tryp(&bp->b_sem)) { in getblk_common()
624 sema_p(&bp->b_sem); in getblk_common()
627 sema_v(&bp->b_sem); in getblk_common()
650 ASSERT(SEMA_HELD(&bp->b_sem)); in getblk_common()
680 sema_v(&nbp->b_sem); in getblk_common()
683 ASSERT(SEMA_HELD(&bp->b_sem)); in getblk_common()
723 ASSERT(SEMA_HELD(&nbp->b_sem)); in getblk_common()
742 sema_p(&errbp->b_sem); in getblk_common()
808 if (sema_tryp(&bp->b_sem)) { in trygetblk()
815 sema_v(&bp->b_sem); in trygetblk()
832 ASSERT(SEMA_HELD(&bp->b_sem)); in iowait()
843 ASSERT(SEMA_HELD(&bp->b_sem)); in iodone()
853 ASSERT(SEMA_HELD(&bp->b_sem)); in clrbuf()
914 sema_p(&bp->b_sem); /* may block */ in bflush()
917 sema_v(&bp->b_sem); in bflush()
939 sema_v(&bp->b_sem); in bflush()
989 sema_p(&sbp->b_sem); in blkflush()
1007 sema_v(&sbp->b_sem); in blkflush()
1060 sema_p(&bp->b_sem); in bfinval()
1091 sema_v(&bp->b_sem); in bfinval()
1214 ASSERT(SEMA_HELD(&bp->b_sem)); in biowait()
1257 ASSERT(SEMA_HELD(&bp->b_sem)); in biodone()
1278 ASSERT(SEMA_HELD(&bp->b_sem)); in geterror()
1353 sema_init(&bp->b_sem, 0, NULL, SEMA_DEFAULT, NULL); in pageio_setup()
1369 ASSERT(SEMA_HELD(&bp->b_sem)); in pageio_done()
1377 sema_destroy(&bp->b_sem); in pageio_done()
1466 sema_p(&bp->b_sem); /* Should never fail */ in bio_getfreeblk()
1475 ASSERT(SEMA_HELD(&bp->b_sem)); in bio_getfreeblk()
1501 if (!sema_tryp(&bp->b_sem)) { in bio_getfreeblk()
1535 sema_v(&save->b_sem); in bio_getfreeblk()
1537 ASSERT(SEMA_HELD(&bp->b_sem)); in bio_getfreeblk()
1540 sema_v(&bp->b_sem); in bio_getfreeblk()
1553 ASSERT(SEMA_HELD(&bp->b_sem)); in bio_getfreeblk()
1600 sema_init(&dp->b_sem, 1, NULL, SEMA_DEFAULT, in bio_bhdr_alloc()
1715 if (!sema_tryp(&bp->b_sem)) { in bio_recycle()
1723 sema_v(&bp->b_sem); in bio_recycle()
1752 sema_v(&bp->b_sem); in bio_recycle()
1791 if (!sema_tryp(&bp->b_sem)) in bio_recycle()
1799 sema_v(&bp->b_sem); in bio_recycle()
1819 sema_v(&bp->b_sem); in bio_recycle()
1917 ASSERT(SEMA_HELD(&bp->b_sem)); in bioerror()
1985 sema_init(&bp->b_sem, 0, NULL, SEMA_DEFAULT, NULL); in bioinit()
1997 sema_destroy(&bp->b_sem); in biofini()