[PATCH 9/40] fs/transport: replace schedule_timeout() with msleep()

Nishanth Aravamudan nacc at us.ibm.com
Thu Jan 20 19:07:33 GMT 2005


Hi,

Please consider applying.

Description: Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected. The current code uses TASK_INTERRUPTIBLE, but does not check
for signals, so I believe the change to msleep() is acceptable.

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

--- 2.6.11-rc1-kj-v/fs/cifs/transport.c	2005-01-15 16:55:41.000000000 -0800
+++ 2.6.11-rc1-kj/fs/cifs/transport.c	2005-01-18 10:52:15.000000000 -0800
@@ -26,6 +26,7 @@
 #include <asm/uaccess.h>
 #include <asm/processor.h>
 #include <linux/mempool.h>
+#include <linux/delay.h>
 #include "cifspdu.h"
 #include "cifsglob.h"
 #include "cifsproto.h"
@@ -156,8 +157,7 @@ smb_send(struct socket *ssocket, struct 
 				rc = -EAGAIN;
 				break;
 			}
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(HZ/2);
+			msleep(500);
 			continue;
 		}
 		if (rc < 0) 


More information about the samba-technical mailing list