From ebcf753ef0a69161011093f2ffe853ea2a340bbc Mon Sep 17 00:00:00 2001 From: Maxim Patlasov Date: Tue, 28 Sep 2010 14:07:59 +0400 Subject: [PATCH] b=16842 __l_wait_event should sleep using TASK_INT i=green i=andreas All threads sleeping in non-interruptible way are accounted in "load average". This is not desirable for lustre threads sleeping in __l_wait_event. Traditionally, only threads doing I/O are allowed to sleep in non-interruptible way. --- lustre/include/lustre_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/lustre_lib.h b/lustre/include/lustre_lib.h index 37cf991..4beca8ed 100644 --- a/lustre/include/lustre_lib.h +++ b/lustre/include/lustre_lib.h @@ -697,7 +697,7 @@ do { \ (__timeout == 0 || __allow_intr) ? \ CFS_TASK_INTERRUPTIBLE : CFS_TASK_UNINT; \ \ - cfs_set_current_state(__wstate); \ + cfs_set_current_state(CFS_TASK_INTERRUPTIBLE); \ \ if (condition) \ break; \ -- 1.8.3.1