From: Nishanth Aravamudan Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. (akpm: this patch relies on other stuff in -mm, please don't apply) Signed-off-by: Nishanth Aravamudan Cc: David Teigland Signed-off-by: Andrew Morton --- drivers/dlm/lockspace.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/dlm/lockspace.c~drivers-dlm-fix-up-schedule_timeout-usage drivers/dlm/lockspace.c --- devel/drivers/dlm/lockspace.c~drivers-dlm-fix-up-schedule_timeout-usage 2005-08-21 23:50:01.000000000 -0700 +++ devel-akpm/drivers/dlm/lockspace.c 2005-08-21 23:50:01.000000000 -0700 @@ -199,8 +199,7 @@ static int dlm_scand(void *data) while (!kthread_should_stop()) { list_for_each_entry(ls, &lslist, ls_list) dlm_scan_rsbs(ls); - set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(dlm_config.scan_secs * HZ); + schedule_timeout_interruptible(dlm_config.scan_secs * HZ); } return 0; } _