Skip to contentSkip to conversation

CIFS: Use ssleep() instead of msleep() when sleeping multiple seconds

PATCH New Jesper Juhl 1 participant 1 message Sep 2, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIFS: Use ssleep() instead of msleep() when sleeping multiple seconds

Hi,

A little trivial thing...

When sleeping for multiple seconds the function to use is ssleep() not msleep() - especially when there's a comment above reading "... wait at least 45 seconds ...", then ssleep() best describes what is wanted.

---

 fs/cifs/connect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/connect.c +1 -1
index 4af3588..0a9b76a 100644
@@ -733,7 +733,7 @@ multi_t2_fnd:
 		on a request getting a response and going ahead
 		and killing cifsd */
 		cFYI(1, ("Wait for exit from demultiplex thread"));
-		msleep(46000);
+		ssleep(46);
 		/* if threads still have not exited they are probably never
 		coming home not much else we can do but free the memory */
 	}