Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Fix a deadlock
details: https://anonhg.NetBSD.org/src/rev/a5241bddce91
branches: trunk
changeset: 346453:a5241bddce91
user: maya <maya%NetBSD.org@localhost>
date: Wed Jul 13 16:26:26 2016 +0000
description:
Fix a deadlock
ok dholland@
diffstat:
sys/ufs/lfs/lfs_vnops.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r b546a4735b6a -r a5241bddce91 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c Wed Jul 13 15:59:54 2016 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c Wed Jul 13 16:26:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vnops.c,v 1.303 2016/06/20 03:55:34 dholland Exp $ */
+/* $NetBSD: lfs_vnops.c,v 1.304 2016/07/13 16:26:26 maya Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.303 2016/06/20 03:55:34 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.304 2016/07/13 16:26:26 maya Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -593,8 +593,10 @@
if ((error = mtsleep(&lfs_dirvcount,
PCATCH | PUSER | PNORELOCK, "lfs_maxdirop", 0,
&lfs_lock)) != 0) {
+ mutex_exit(&lfs_lock);
goto unreserve;
}
+ mutex_exit(&lfs_lock);
goto restart;
}
Home |
Main Index |
Thread Index |
Old Index