OSDN Git Service

sched, cleanup, treewide: Remove set_current_state(TASK_RUNNING) after schedule()
[uclinux-h8/linux.git] / fs / jfs / jfs_logmgr.c
index 0acddf6..bc462dc 100644 (file)
@@ -1585,7 +1585,6 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
                set_current_state(TASK_UNINTERRUPTIBLE);
                LOGGC_UNLOCK(log);
                schedule();
-               __set_current_state(TASK_RUNNING);
                LOGGC_LOCK(log);
                remove_wait_queue(&target->gcwait, &__wait);
        }
@@ -2359,7 +2358,6 @@ int jfsIOWait(void *arg)
                        set_current_state(TASK_INTERRUPTIBLE);
                        spin_unlock_irq(&log_redrive_lock);
                        schedule();
-                       __set_current_state(TASK_RUNNING);
                }
        } while (!kthread_should_stop());