Date: Thu, 7 Nov 2019 20:57:51 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354478 - head/sys/netinet Message-ID: <201911072057.xA7KvpMt078284@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Nov 7 20:57:51 2019 New Revision: 354478 URL: https://svnweb.freebsd.org/changeset/base/354478 Log: Add INP_UNLOCK() which will do whatever R/W unlock is required. Modified: head/sys/netinet/in_pcb.h Modified: head/sys/netinet/in_pcb.h ============================================================================== --- head/sys/netinet/in_pcb.h Thu Nov 7 20:49:56 2019 (r354477) +++ head/sys/netinet/in_pcb.h Thu Nov 7 20:57:51 2019 (r354478) @@ -586,6 +586,7 @@ struct inpcblbgroup { #define INP_TRY_WLOCK(inp) rw_try_wlock(&(inp)->inp_lock) #define INP_RUNLOCK(inp) rw_runlock(&(inp)->inp_lock) #define INP_WUNLOCK(inp) rw_wunlock(&(inp)->inp_lock) +#define INP_UNLOCK(inp) rw_unlock(&(inp)->inp_lock) #define INP_TRY_UPGRADE(inp) rw_try_upgrade(&(inp)->inp_lock) #define INP_DOWNGRADE(inp) rw_downgrade(&(inp)->inp_lock) #define INP_WLOCKED(inp) rw_wowned(&(inp)->inp_lock)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911072057.xA7KvpMt078284>