MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bd_wakeup

Function bd_wakeup

freebsd/kern/vfs_bio.c:974–984  ·  view source on GitHub ↗

Wake up the buffer daemon if necessary */

Source from the content-addressed store, hash-verified

972
973/* Wake up the buffer daemon if necessary */
974static void
975bd_wakeup(void)
976{
977
978 mtx_lock(&bdlock);
979 if (bd_request == 0) {
980 bd_request = 1;
981 wakeup(&bd_request);
982 }
983 mtx_unlock(&bdlock);
984}
985
986/*
987 * Adjust the maxbcachbuf tunable.

Callers 1

bdirtyaddFunction · 0.85

Calls 3

mtx_lockFunction · 0.70
wakeupFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected