[KJ][PATCH 03/04]use set_current_state in fs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Milind Arun Choudhary
Date: Saturday, April 14, 2007 - 1:49 am

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

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


---
 idmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 9d4a6b2..054ca15 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -272,7 +272,7 @@ nfs_idmap_id(struct idmap *idmap, struct idmap_hashtable *h,
 	set_current_state(TASK_UNINTERRUPTIBLE);
 	mutex_unlock(&idmap->idmap_im_lock);
 	schedule();
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&idmap->idmap_wq, &wq);
 	mutex_lock(&idmap->idmap_im_lock);
 
@@ -333,7 +333,7 @@ nfs_idmap_name(struct idmap *idmap, struct idmap_hashtable *h,
 	set_current_state(TASK_UNINTERRUPTIBLE);
 	mutex_unlock(&idmap->idmap_im_lock);
 	schedule();
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&idmap->idmap_wq, &wq);
 	mutex_lock(&idmap->idmap_im_lock);
 
-- 
Milind Arun Choudhary
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[KJ][PATCH 03/04]use set_current_state in fs, Milind Arun Choudhary, (Sat Apr 14, 1:49 am)
Re: [KJ][PATCH 03/04]use set_current_state in fs, Eric Dumazet, (Sat Apr 14, 2:39 am)
Re: [KJ][PATCH 03/04]use set_current_state in fs, Milind Arun Choudhary, (Sat Apr 14, 3:16 am)