From f2e0f4c55ccf41ebd71f508beb6fbcc3ed005c13 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sat, 6 Nov 2021 23:29:03 +0000 Subject: [PATCH] pslist(9): No need to serialize pserialize_perform any more. So take it out of the mutex section. --- share/man/man9/pslist.9 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/man/man9/pslist.9 b/share/man/man9/pslist.9 index cccb51853124..5819e03c1bee 100644 --- a/share/man/man9/pslist.9 +++ b/share/man/man9/pslist.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: pslist.9,v 1.18 2017/07/03 21:28:48 wiz Exp $ +.\" $NetBSD: pslist.9,v 1.19 2021/11/06 23:29:03 riastradh Exp $ .\" .\" Copyright (c) 2016 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -400,9 +400,10 @@ the memory allocated for it: mutex_enter(&frobnitzem.lock); PSLIST_WRITER_REMOVE(f, f_entry); - pserialize_perform(&frobnitzem.psz); mutex_exit(&frobnitzem.lock); + pserialize_perform(&frobnitzem.psz); + PSLIST_ENTRY_DESTROY(f, f_entry); pool_put(&frobnitzem.pool, f); .Ed