mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 01:10:39 -05:00
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]>
This commit is contained in:
parent
ddce40df6e
commit
fee7f23fea
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue