[PATCH] lockd: replace schedule_timeout() with msleep_interruptible() From: Nishanth Aravamudan Use msleep_interruptible() instead of schedule_timeout(). The existing code is not incorrect, but msleep_interruptible() offers two advantages: 1) consistency across the kernel and 2) human-sensible time units (msecs). Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer Signed-off-by: Alexey Dobriyan Index: linux-kj/fs/lockd/clntproc.c =================================================================== --- linux-kj.orig/fs/lockd/clntproc.c 2005-09-03 14:19:18.000000000 +0400 +++ linux-kj/fs/lockd/clntproc.c 2005-09-03 14:22:56.000000000 +0400 @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -299,8 +300,7 @@ nlmclnt_alloc_call(void) return call; } printk("nlmclnt_alloc_call: failed, waiting for memory\n"); - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(5*HZ); + msleep_interruptible(5000); } return NULL; }