[-mm PATCH 19/32] drivers/dlm: fix-up schedule_timeout() usage

Nishanth Aravamudan
2005-08-15T18:19:47Z

Description: Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

---

drivers/dlm/lockspace.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -urpN 2.6.13-rc5-mm1/drivers/dlm/lockspace.c 2.6.13-rc5-mm1-dev/drivers/dlm/lockspace.c
--- 2.6.13-rc5-mm1/drivers/dlm/lockspace.c 2005-08-07 10:05:20.000000000 -0700
+++ 2.6.13-rc5-mm1-dev/drivers/dlm/lockspace.c 2005-08-08 14:34:39.000000000 -0700
@@ -54,8 +54,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;
}