Skip to contentSkip to conversation

use set_current_state in fs

PATCH In review Milind Arun Choudhary 1 participant 1 message Apr 14, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 use set_current_state in fs

use set_current_state(TASK_*) instead of current->state = TASK_*, in fs/reiserfs

---

 journal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/reiserfs/journal.c +1 -1
index 7280a23..864b15a 100644
@@ -2918,7 +2918,7 @@ static void queue_log_writer(struct super_block *s)
 	set_current_state(TASK_UNINTERRUPTIBLE);
 	if (test_bit(J_WRITERS_QUEUED, &journal->j_state))
 		schedule();
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&journal->j_join_wait, &wait);
 }
 
Signature · 1 line
Milind Arun Choudhary