Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 pslist(9): No need to serialize pserialize_pe...
details: https://anonhg.NetBSD.org/src/rev/4a5d505c7734
branches: trunk
changeset: 1024818:4a5d505c7734
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Nov 06 23:29:03 2021 +0000
description:
pslist(9): No need to serialize pserialize_perform any more.
So take it out of the mutex section.
diffstat:
share/man/man9/pslist.9 | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r e9a24d4153e2 -r 4a5d505c7734 share/man/man9/pslist.9
--- a/share/man/man9/pslist.9 Sat Nov 06 23:11:43 2021 +0000
+++ b/share/man/man9/pslist.9 Sat Nov 06 23:29:03 2021 +0000
@@ -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,8 +400,9 @@
mutex_enter(&frobnitzem.lock);
PSLIST_WRITER_REMOVE(f, f_entry);
+ mutex_exit(&frobnitzem.lock);
+
pserialize_perform(&frobnitzem.psz);
- mutex_exit(&frobnitzem.lock);
PSLIST_ENTRY_DESTROY(f, f_entry);
pool_put(&frobnitzem.pool, f);
Home |
Main Index |
Thread Index |
Old Index