lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200709021944.49862.jesper.juhl@gmail.com>
Date:	Sun, 2 Sep 2007 19:44:49 +0200
From:	Jesper Juhl <jesper.juhl@...il.com>
To:	Steve French <sfrench@...ba.org>
Cc:	linux-cifs-client@...ts.samba.org,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Jesper Juhl <jesper.juhl@...il.com>
Subject: [PATCH][Trivial] 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.


Signed-off-by: Jesper Juhl <jesper.juhl@...il.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 */
 	}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ