Source-Changes-HG archive

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

[src/trunk]: src/sys/net Added missing locking order between sppp and IFNET_LOCK



details:   https://anonhg.NetBSD.org/src/rev/ea0f4c04abe6
branches:  trunk
changeset: 961709:ea0f4c04abe6
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Fri Apr 16 02:26:25 2021 +0000

description:
Added missing locking order between sppp and IFNET_LOCK

diffstat:

 sys/net/if_spppvar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 96426a2adbdd -r ea0f4c04abe6 sys/net/if_spppvar.h
--- a/sys/net/if_spppvar.h      Fri Apr 16 02:23:25 2021 +0000
+++ b/sys/net/if_spppvar.h      Fri Apr 16 02:26:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppvar.h,v 1.32 2020/11/25 10:30:51 yamaguchi Exp $        */
+/*     $NetBSD: if_spppvar.h,v 1.33 2021/04/16 02:26:25 yamaguchi Exp $        */
 
 #ifndef _NET_IF_SPPPVAR_H_
 #define _NET_IF_SPPPVAR_H_
@@ -240,7 +240,7 @@
  *     if_spppsubr.c.
  *
  * Locking order:
- *    - spppq_lock => struct sppp->pp_lock
+ *    - IFNET_LOCK => spppq_lock => struct sppp->pp_lock
  *
  * NOTICE
  * - Lower layers must not acquire sppp->pp_lock



Home | Main Index | Thread Index | Old Index