Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern sysctl_dobuf: re-acquire the sysctl lock on retry p...



details:   https://anonhg.NetBSD.org/src/rev/28bd710c5a6c
branches:  trunk
changeset: 773063:28bd710c5a6c
user:      rmind <rmind%NetBSD.org@localhost>
date:      Thu Jan 26 19:18:25 2012 +0000

description:
sysctl_dobuf: re-acquire the sysctl lock on retry path.  PR/45827.

diffstat:

 sys/kern/vfs_bio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 967c7d4db9f3 -r 28bd710c5a6c sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Thu Jan 26 16:12:14 2012 +0000
+++ b/sys/kern/vfs_bio.c        Thu Jan 26 19:18:25 2012 +0000
@@ -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 @@
                                                break;
                                        }
                                        mutex_exit(&bufcache_lock);
+                                       sysctl_relock();
                                        goto retry;
                                }
                                dp += elem_size;



Home | Main Index | Thread Index | Old Index