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",
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to