From 07cf31057e64f0b1a4830e3f6ab433a1c6ff60e3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 6 Apr 2009 14:48:04 +0200 Subject: [PATCH] --- yaml --- r: 142030 b: refs/heads/master c: 6c4bac6b3351fd278dc3537dae42f88f733ff12e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/jbd/commit.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3f1752ba4cf9..189a64b81204 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9cf6b720f84d6999ff9a514d0a939dd183846aaf +refs/heads/master: 6c4bac6b3351fd278dc3537dae42f88f733ff12e diff --git a/trunk/fs/jbd/commit.c b/trunk/fs/jbd/commit.c index f8077b9c8981..a8e8513a78a9 100644 --- a/trunk/fs/jbd/commit.c +++ b/trunk/fs/jbd/commit.c @@ -351,8 +351,13 @@ void journal_commit_transaction(journal_t *journal) spin_lock(&journal->j_state_lock); commit_transaction->t_state = T_LOCKED; + /* + * Use plugged writes here, since we want to submit several before + * we unplug the device. We don't do explicit unplugging in here, + * instead we rely on sync_buffer() doing the unplug for us. + */ if (commit_transaction->t_synchronous_commit) - write_op = WRITE_SYNC; + write_op = WRITE_SYNC_PLUG; spin_lock(&commit_transaction->t_handle_lock); while (commit_transaction->t_updates) { DEFINE_WAIT(wait);