Module Name: src Committed By: pooka Date: Fri Sep 4 16:18:34 UTC 2009
Modified Files: src/sys/netsmb: smb_iod.c Log Message: add comment to previous stating periodic wakeups can be nuked once smb is mpsafe. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/netsmb/smb_iod.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netsmb/smb_iod.c diff -u src/sys/netsmb/smb_iod.c:1.34 src/sys/netsmb/smb_iod.c:1.35 --- src/sys/netsmb/smb_iod.c:1.34 Fri Sep 4 16:16:52 2009 +++ src/sys/netsmb/smb_iod.c Fri Sep 4 16:18:34 2009 @@ -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);