LOG_RDWAIT
atomic_set_int(&logsoftc.sc_state, LOG_RDWAIT);
if (logsoftc.sc_state & LOG_RDWAIT) {
atomic_clear_int(&logsoftc.sc_state, LOG_RDWAIT);