mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [KJ][PATCH 04/04]use set_current_state in fs
@ 2007-04-14  8:50 Milind Arun Choudhary
  0 siblings, 0 replies; only message in thread
From: Milind Arun Choudhary @ 2007-04-14  8:50 UTC (permalink / raw)
  To: kernel-janitors, reiserfs-list; +Cc: linux-kernel, akpm, reiserfs-dev

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

Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>

---

 journal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index 7280a23..864b15a 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -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);
 }
 

-- 
Milind Arun Choudhary

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-14  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-14  8:50 [KJ][PATCH 04/04]use set_current_state in fs Milind Arun Choudhary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®