summaryrefslogtreecommitdiffstats
path: root/sys/geom/journal
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-01-26 10:34:21 +0000
committerkib <kib@FreeBSD.org>2011-01-26 10:34:21 +0000
commit3dbd97216934084fef91ef78eda2ab18c713a569 (patch)
treeeafe1a58c16f0b060fc07d72741acfca6fb5f12c /sys/geom/journal
parent09011c696c45cc5baf7bb88846a18660a39aa949 (diff)
downloadFreeBSD-src-3dbd97216934084fef91ef78eda2ab18c713a569.zip
FreeBSD-src-3dbd97216934084fef91ef78eda2ab18c713a569.tar.gz
Treat async buffer writes from the gjournal switcher thread the same as
from syncer. We shall not sleep on running buffer space when suspending. Reproduced and tested by: pho PR: kern/154228 MFC after: 1 week
Diffstat (limited to 'sys/geom/journal')
-rw-r--r--sys/geom/journal/g_journal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index 16a26f1..f3f9072 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -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",
OpenPOWER on IntegriCloud