Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Don't allocate lwp info for fstrans_held() and fstr...
details: https://anonhg.NetBSD.org/src/rev/29336beeaca8
branches: trunk
changeset: 369581:29336beeaca8
user: hannken <hannken%NetBSD.org@localhost>
date: Mon Aug 22 09:13:08 2022 +0000
description:
Don't allocate lwp info for fstrans_held() and fstrans_is_owner().
If it doesn't exist we cannot hold a transaction or suspension.
diffstat:
sys/kern/vfs_trans.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 6af1e4dba8bc -r 29336beeaca8 sys/kern/vfs_trans.c
--- a/sys/kern/vfs_trans.c Mon Aug 22 08:37:16 2022 +0000
+++ b/sys/kern/vfs_trans.c Mon Aug 22 09:13:08 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_trans.c,v 1.67 2022/08/11 10:17:44 hannken Exp $ */
+/* $NetBSD: vfs_trans.c,v 1.68 2022/08/22 09:13:08 hannken Exp $ */
/*-
* Copyright (c) 2007, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.67 2022/08/11 10:17:44 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.68 2022/08/22 09:13:08 hannken Exp $");
/*
* File system transaction operations.
@@ -631,7 +631,7 @@
KASSERT(mp != dead_rootmount);
- fli = fstrans_get_lwp_info(mp, true);
+ fli = fstrans_get_lwp_info(mp, false);
if (fli == NULL)
return 0;
fmi = fli->fli_mountinfo;
@@ -650,7 +650,7 @@
KASSERT(mp != dead_rootmount);
- fli = fstrans_get_lwp_info(mp, true);
+ fli = fstrans_get_lwp_info(mp, false);
if (fli == NULL)
return 0;
fmi = fli->fli_mountinfo;
Home |
Main Index |
Thread Index |
Old Index