Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fee7f23feaf0845fdfd47d20cddc75652552fbb8
Commit:     fee7f23feaf0845fdfd47d20cddc75652552fbb8
Parent:     ddce40df6e14dd474bbd9daa006dcc290dea6326
Author:     Milind Arun Choudhary <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 26 00:29:03 2007 -0700
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Wed May 9 17:58:01 2007 -0400

    NFS: use __set_current_state()
    
    use __set_current_state(TASK_*) instead of current->state = TASK_*, in 
fs/nfs
    
    Signed-off-by: Milind Arun Choudhary <[EMAIL PROTECTED]>
    Cc: Trond Myklebust <[EMAIL PROTECTED]>
    Cc: "J. Bruce Fields" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/nfs/idmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 9d4a6b2..d11eb05 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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to