Source-Changes-HG archive

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

[src/trunk]: src/sys/netsmb defensive programming: wake up iod thread once a ...



details:   https://anonhg.NetBSD.org/src/rev/038ec7348932
branches:  trunk
changeset: 747156:038ec7348932
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Sep 04 16:16:52 2009 +0000

description:
defensive programming: wake up iod thread once a second "just in case"

diffstat:

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

diffs (27 lines):

diff -r 0a68596f1544 -r 038ec7348932 sys/netsmb/smb_iod.c
--- a/sys/netsmb/smb_iod.c      Fri Sep 04 16:12:45 2009 +0000
+++ b/sys/netsmb/smb_iod.c      Fri Sep 04 16:16:52 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_iod.c,v 1.33 2009/09/04 16:12:45 pooka Exp $       */
+/*     $NetBSD: smb_iod.c,v 1.34 2009/09/04 16:16:52 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.33 2009/09/04 16:12:45 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_iod.c,v 1.34 2009/09/04 16:16:52 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -684,7 +684,7 @@
                if (iod->iod_flags & SMBIOD_SHUTDOWN)
                        break;
                SMBIODEBUG(("going to sleep\n"));
-               tsleep(&iod->iod_flags, PSOCK, "smbidle", 0);
+               tsleep(&iod->iod_flags, PSOCK, "smbidle", hz);
        }
        splx(s);
        kthread_exit(0);



Home | Main Index | Thread Index | Old Index