* [Ocfs2-devel] [PATCH] ocfs2: submit disk heartbeat bio using WRITE_SYNC
@ 2011-12-06 4:57 Noboru Iwamatsu
2011-12-06 5:18 ` Tao Ma
0 siblings, 1 reply; 3+ messages in thread
From: Noboru Iwamatsu @ 2011-12-06 4:57 UTC (permalink / raw)
To: ocfs2-devel
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>
---
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:
--
1.7.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2: submit disk heartbeat bio using WRITE_SYNC
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
2011-12-08 19:07 ` Sunil Mushran
0 siblings, 1 reply; 3+ messages in thread
From: Tao Ma @ 2011-12-06 5:18 UTC (permalink / raw)
To: ocfs2-devel
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:
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2: submit disk heartbeat bio using WRITE_SYNC
2011-12-06 5:18 ` Tao Ma
@ 2011-12-08 19:07 ` Sunil Mushran
0 siblings, 0 replies; 3+ messages in thread
From: Sunil Mushran @ 2011-12-08 19:07 UTC (permalink / raw)
To: ocfs2-devel
Acked-by: Sunil Mushran <sunil.mushran@oracle.com>
On 12/05/2011 09:18 PM, Tao Ma wrote:
> 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:
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-08 19:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-12-08 19:07 ` Sunil Mushran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).