Source-Changes-HG archive

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

[src/trunk]: src/sys/net wg: Note lock order.



details:   https://anonhg.NetBSD.org/src/rev/09367cd60a48
branches:  trunk
changeset: 943342:09367cd60a48
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 31 20:20:48 2020 +0000

description:
wg: Note lock order.

diffstat:

 sys/net/if_wg.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 78fe71c81124 -r 09367cd60a48 sys/net/if_wg.c
--- a/sys/net/if_wg.c   Mon Aug 31 20:20:22 2020 +0000
+++ b/sys/net/if_wg.c   Mon Aug 31 20:20:48 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wg.c,v 1.33 2020/08/31 20:20:22 riastradh Exp $     */
+/*     $NetBSD: if_wg.c,v 1.34 2020/08/31 20:20:48 riastradh Exp $     */
 
 /*
  * Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.33 2020/08/31 20:20:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.34 2020/08/31 20:20:48 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -161,6 +161,8 @@
  *     - On a session swap, we must wait for all readers to release a
  *       reference to a stable session before changing wgs_state and
  *       session states
+ *
+ * Lock order: wg_lock -> wgp_lock -> wgs_lock
  */
 
 



Home | Main Index | Thread Index | Old Index