Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2011 12:24:54 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r218188 - stable/8/sys/geom/journal
Message-ID:  <201102021224.p12COsJF009040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Feb  2 12:24:53 2011
New Revision: 218188
URL: http://svn.freebsd.org/changeset/base/218188

Log:
  MFC r217880:
  Treat async buffer writes from the gjournal switcher thread the same as
  from syncer. We shall not sleep on running buffer space when suspending.

Modified:
  stable/8/sys/geom/journal/g_journal.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/geom/journal/g_journal.c
==============================================================================
--- stable/8/sys/geom/journal/g_journal.c	Wed Feb  2 12:22:44 2011	(r218187)
+++ stable/8/sys/geom/journal/g_journal.c	Wed Feb  2 12:24:53 2011	(r218188)
@@ -3033,6 +3033,7 @@ g_journal_switcher(void *arg)
 	int error;
 
 	mp = arg;
+	curthread->td_pflags |= TDP_NORUNNINGBUF;
 	for (;;) {
 		g_journal_switcher_wokenup = 0;
 		error = tsleep(&g_journal_switcher_state, PRIBIO, "jsw:wait",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102021224.p12COsJF009040>