mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesper Juhl <jesper.juhl@gmail.com>
To: Steve French <sfrench@samba.org>
Cc: linux-cifs-client@lists.samba.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Jesper Juhl <jesper.juhl@gmail.com>
Subject: [PATCH][Trivial] CIFS: Use ssleep() instead of msleep() when sleeping multiple seconds
Date: Sun, 2 Sep 2007 19:44:49 +0200	[thread overview]
Message-ID: <200709021944.49862.jesper.juhl@gmail.com> (raw)

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 */
 	}


                 reply	other threads:[~2007-09-02 17:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709021944.49862.jesper.juhl@gmail.com \
    --to=jesper.juhl@gmail.com \
    --cc=linux-cifs-client@lists.samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfrench@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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