From: Nishanth Aravamudan Subject: [KJ] [PATCH 5/40] fs/clntproc: replace schedule_timeout() with msleep_interruptible() 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 --- clntproc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: quilt/fs/lockd/clntproc.c =================================================================== --- quilt.orig/fs/lockd/clntproc.c +++ quilt/fs/lockd/clntproc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -298,8 +299,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; }