fs/nfs4callback: replace schedule_timeout() with ssleep()
Subsystems (2)
PATCH 2/2 fs/nfs4callback: replace schedule_timeout() with ssleep()
Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
---
kj-domen/fs/nfsd/nfs4callback.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fs/nfsd/nfs4callback.c renamed from fs/nfsd/nfs4callback.c~ssleep-fs_nfsd_nfs4callback +2 -2
@@ -38,6 +38,7 @@#include <linux/list.h> #include <linux/inet.h> #include <linux/errno.h> +#include <linux/delay.h> #include <linux/sunrpc/xdr.h> #include <linux/sunrpc/svc.h> #include <linux/sunrpc/clnt.h>
@@ -531,8 +532,7 @@ out: retry:atomic_inc (&dp->dl_recall_cnt);/* sleep 2 seconds before retrying recall */ -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (2 *HZ ); +ssleep (2 ); status =nfsd4_cb_recall (dp);dprintk ("NFSD: nfs4_cb_recall_done: retry status: %d dp %p dl_flock %p\n" ,status,dp, dp->dl_flock); }
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs