RUNNING
if (!TEST_AND_CLEAR(&bdev->state, RUNNING))
if (TEST_AND_SET(&bdev->state, RUNNING)) {
if (TEST_AND_CLEAR(&bdev->state, RUNNING)) {
bdev->state = SET_BIT(bdev->state, RUNNING);
if (!GET_BIT(bdev->state, RUNNING)) {
if (!GET_BIT(bdev->state, RUNNING)) {
if (!GET_BIT(bdev->state, RUNNING)) {
case RUNNING:
thread->state = RUNNING;
} else if (thread->state == RUNNING) {
if (thread->state == RUNNING || thread->state == STILL_RUNNING) {
AddState(thread, time, RUNNING, NULL);
case RUNNING:
state = RUNNING;
state = RUNNING;
} else if (state == RUNNING) {
if (state == RUNNING || state == STILL_RUNNING) {
if (state == RUNNING) {
case RUNNING:
if (thread->state == RUNNING || thread->state == STILL_RUNNING) {
if (thread->state == RUNNING) {
thread->state = RUNNING;
if (thread->state != RUNNING) {
thread->state = RUNNING;
} else if (thread->state == RUNNING) {
state = RUNNING;
if (state != RUNNING) {
state = RUNNING;
} else if (state == RUNNING) {
if (state == RUNNING || state == STILL_RUNNING) {
if (state == RUNNING) {
thread->state = RUNNING;
if (thread->state != RUNNING) {
thread->state = RUNNING;
} else if (thread->state == RUNNING) {
if (thread->state == RUNNING || thread->state == STILL_RUNNING) {
if (thread->state == RUNNING) {