git: b357d40f0818 - main - kdebug_secasv: Update for recent locking changes.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 15 Dec 2022 19:27:58 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=b357d40f0818c570b870f1ac1a7fb61dcceba53f

commit b357d40f0818c570b870f1ac1a7fb61dcceba53f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-15 19:27:39 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-15 19:27:39 +0000

    kdebug_secasv: Update for recent locking changes.
    
    Reviewed by:    kp
    Fixes:          0361f165f219 ipsec: replace SECASVAR  mtx by rmlock
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D37690
---
 sys/netipsec/key_debug.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/netipsec/key_debug.c b/sys/netipsec/key_debug.c
index 3705879397ff..a6e76ef358dd 100644
--- a/sys/netipsec/key_debug.c
+++ b/sys/netipsec/key_debug.c
@@ -882,9 +882,11 @@ kdebug_secasv(struct secasvar *sav)
 		kdebug_secnatt(sav->natt);
 	if (sav->replay != NULL) {
 		KEYDBG(DUMP,
-		    SECASVAR_LOCK(sav);
+		    SECASVAR_RLOCK_TRACKER;
+
+		    SECASVAR_RLOCK(sav);
 		    kdebug_secreplay(sav->replay);
-		    SECASVAR_UNLOCK(sav));
+		    SECASVAR_RUNLOCK(sav));
 	}
 	printf("}\n");
 }