Source-Changes-HG archive

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

[src/pgoyette-localcount]: src/sys/kern Improved comment. No code change.



details:   https://anonhg.NetBSD.org/src/rev/d669e1b9616c
branches:  pgoyette-localcount
changeset: 852824:d669e1b9616c
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Jul 20 07:07:04 2016 +0000

description:
Improved comment.  No code change.

diffstat:

 sys/kern/subr_devsw.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r b4930a1e7160 -r d669e1b9616c sys/kern/subr_devsw.c
--- a/sys/kern/subr_devsw.c     Wed Jul 20 06:51:13 2016 +0000
+++ b/sys/kern/subr_devsw.c     Wed Jul 20 07:07:04 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_devsw.c,v 1.34.2.7 2016/07/17 21:40:47 pgoyette Exp $     */
+/*     $NetBSD: subr_devsw.c,v 1.34.2.8 2016/07/20 07:07:04 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2001, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.34.2.7 2016/07/17 21:40:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.34.2.8 2016/07/20 07:07:04 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dtrace.h"
@@ -404,13 +404,14 @@
        if (j < max_cdevsws )
                cdevsw[j] = NULL;
 
-       /* Wait for all current readers to finish with the devsw */
+       /* Wait for all current readers to finish with the devsw's */
        pserialize_perform(device_psz);
 
        /*
-        * No new readers can reach the bdev and cdev via the
-        * {b,c}devsw[] arrays.  Wait for existing references to
-        * drain, and then destroy.
+        * No new accessors can reach the bdev and cdev via the
+        * {b,c}devsw[] arrays, so no new references can be
+        * acquired.  Wait for all existing references to drain,
+        * and then destroy.
         */
 
        if (i < max_bdevsws && bdev->d_localcount != NULL) {



Home | Main Index | Thread Index | Old Index