OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched, cleanup, treewide: Remove set_current_state(TASK_RUNNING) after schedule()
[uclinux-h8/linux.git]
/
fs
/
jfs
/
jfs_logmgr.c
diff --git
a/fs/jfs/jfs_logmgr.c
b/fs/jfs/jfs_logmgr.c
index
0acddf6
..
bc462dc
100644
(file)
--- a/
fs/jfs/jfs_logmgr.c
+++ b/
fs/jfs/jfs_logmgr.c
@@
-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_UNINTERRUPTIBLE);
LOGGC_UNLOCK(log);
schedule();
- __set_current_state(TASK_RUNNING);
LOGGC_LOCK(log);
remove_wait_queue(&target->gcwait, &__wait);
}
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_INTERRUPTIBLE);
spin_unlock_irq(&log_redrive_lock);
schedule();
- __set_current_state(TASK_RUNNING);
}
} while (!kthread_should_stop());
}
} while (!kthread_should_stop());