git: wg: Assert 'sc_lock' acquired before LK_EXCLUSIVE 'so_lock'

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 00:32:34 PST 2024


commit 4b2460af64ed04cd59f990f645628adeeb6f443a
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jan 13 16:49:41 2024 +0800

    wg: Assert 'sc_lock' acquired before LK_EXCLUSIVE 'so_lock'
    
    So it's not needed to acquire the 'so_lock' in order to access the
    'sc_socket' members.  Comment this in wg_ioctl_get().

Summary of changes:
 sys/net/wg/if_wg.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4b2460af64ed04cd59f990f645628adeeb6f443a


-- 
DragonFly BSD source repository


More information about the Commits mailing list