NFS: use __set_current_state()
authorMilind Arun Choudhary <milindchoudhary@gmail.com>
Thu, 26 Apr 2007 07:29:03 +0000 (00:29 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 May 2007 21:58:01 +0000 (17:58 -0400)
use __set_current_state(TASK_*) instead of current->state = TASK_*, in fs/nfs

Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/idmap.c

index 9d4a6b2..d11eb05 100644 (file)
@@ -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);