mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][Trivial] CIFS: Use ssleep() instead of msleep() when sleeping multiple seconds
@ 2007-09-02 17:44 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2007-09-02 17:44 UTC (permalink / raw)
  To: Steve French; +Cc: linux-cifs-client, Linux Kernel Mailing List, Jesper Juhl

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.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 fs/cifs/connect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 4af3588..0a9b76a 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -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 */
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-02 17:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-02 17:44 [PATCH][Trivial] CIFS: Use ssleep() instead of msleep() when sleeping multiple seconds Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome