pslist(9): No need to serialize pserialize_perform any more.

So take it out of the mutex section.
This commit is contained in:
riastradh 2021-11-06 23:29:03 +00:00
parent 0a50b87edf
commit f2e0f4c55c
1 changed files with 3 additions and 2 deletions

View File

@ -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