Module Name: src
Committed By: rmind
Date: Thu Jan 26 19:18:25 UTC 2012
Modified Files:
src/sys/kern: vfs_bio.c
Log Message:
sysctl_dobuf: re-acquire the sysctl lock on retry path. PR/45827.
To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/kern/vfs_bio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.232 src/sys/kern/vfs_bio.c:1.233
--- src/sys/kern/vfs_bio.c:1.232 Wed Oct 5 01:53:03 2011
+++ src/sys/kern/vfs_bio.c Thu Jan 26 19:18:25 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.232 2011/10/05 01:53:03 jakllsch Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.233 2012/01/26 19:18:25 rmind Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.232 2011/10/05 01:53:03 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.233 2012/01/26 19:18:25 rmind Exp $");
#include "opt_bufcache.h"
@@ -1705,6 +1705,7 @@ sysctl_dobuf(SYSCTLFN_ARGS)
break;
}
mutex_exit(&bufcache_lock);
+ sysctl_relock();
goto retry;
}
dp += elem_size;