From: Tao Ma <tm@tao.ma>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: submit disk heartbeat bio using WRITE_SYNC
Date: Tue, 06 Dec 2011 13:18:16 +0800 [thread overview]
Message-ID: <4EDDA598.50708@tao.ma> (raw)
In-Reply-To: <1323147430-16691-1-git-send-email-n_iwamatsu@jp.fujitsu.com>
On 12/06/2011 12:57 PM, Noboru Iwamatsu wrote:
> Under heavy I/O load, writing the disk heartbeat can be forced
> to wait for minutes, and this causes the node to be fenced.
>
> This patch tries to use WRITE_SYNC in submitting the heartbeat
> bio, so that writing the heartbeat will have a priority over
> other requests.
>
> Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
looks good to me.
Acked-by: Tao Ma <boyu.mt@taobao.com>
> ---
> fs/ocfs2/cluster/heartbeat.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
> index 9a3e6bb..6b0c1e4 100644
> --- a/fs/ocfs2/cluster/heartbeat.c
> +++ b/fs/ocfs2/cluster/heartbeat.c
> @@ -491,7 +491,7 @@ static int o2hb_issue_node_write(struct o2hb_region *reg,
> }
>
> atomic_inc(&write_wc->wc_num_reqs);
> - submit_bio(WRITE, bio);
> + submit_bio(WRITE_SYNC, bio);
>
> status = 0;
> bail:
next prev parent reply other threads:[~2011-12-06 5:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 4:57 [Ocfs2-devel] [PATCH] ocfs2: submit disk heartbeat bio using WRITE_SYNC Noboru Iwamatsu
2011-12-06 5:18 ` Tao Ma [this message]
2011-12-08 19:07 ` Sunil Mushran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EDDA598.50708@tao.ma \
--to=tm@tao.ma \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.