Skip to contentSkip to conversation

use set_current_state in fs

PATCH In review Milind Arun Choudhary 1 participant 1 message Apr 14, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 use set_current_state in fs

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

---
 dlmthread.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/dlm/dlmthread.c +1 -1
index 2b264c6..26f4474 100644
@@ -76,7 +76,7 @@ repeat:
 		goto repeat;
 	}
 	remove_wait_queue(&res->wq, &wait);
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 }
 
 int __dlm_lockres_has_locks(struct dlm_lock_resource *res)
Signature · 1 line
Milind Arun Choudhary