Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netsmb add comment to previous stating periodic wakeups ...



details:   https://anonhg.NetBSD.org/src/rev/3773ed699cc3
branches:  trunk
changeset: 747157:3773ed699cc3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Sep 04 16:18:34 2009 +0000

description:
add comment to previous stating periodic wakeups can be nuked
once smb is mpsafe.

diffstat:

 sys/netsmb/smb_iod.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 038ec7348932 -r 3773ed699cc3 sys/netsmb/smb_iod.c
--- a/sys/netsmb/smb_iod.c      Fri Sep 04 16:16:52 2009 +0000
+++ b/sys/netsmb/smb_iod.c      Fri Sep 04 16:18:34 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_iod.c,v 1.34 2009/09/04 16:16:52 pooka Exp $       */
+/*     $NetBSD: smb_iod.c,v 1.35 2009/09/04 16:18:34 pooka Exp $       */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smb_iod.c,v 1.34 2009/09/04 16:16:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_iod.c,v 1.35 2009/09/04 16:18:34 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -684,6 +684,10 @@
                if (iod->iod_flags & SMBIOD_SHUTDOWN)
                        break;
                SMBIODEBUG(("going to sleep\n"));
+               /*
+                * technically wakeup every hz is unnecessary, but keep
+                * this here until smb has been made mpsafe.
+                */
                tsleep(&iod->iod_flags, PSOCK, "smbidle", hz);
        }
        splx(s);



Home | Main Index | Thread Index | Old Index