cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] gfs2: fix s_writers.counter imbalance in gfs2_ail_empty_gl
@ 2012-09-18  2:50 Eric Sandeen
  2012-09-18  8:18 ` Steven Whitehouse
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2012-09-18  2:50 UTC (permalink / raw)
  To: cluster-devel.redhat.com

gfs2_ail_empty_gl() contains an "inline version" of gfs2_trans_begin(),
so it needs an explicit sb_start_intwrite() as well, to balance the
sb_end_intwrite() which will be called by gfs2_trans_end().

With this, xfstest 068 passes on lock_nolock local gfs2.
Without it, we reach a writer count of -1 and get stuck.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 4bdcf37..32cc4fd 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -94,6 +94,7 @@ static void gfs2_ail_empty_gl(struct gfs2_glock *gl)
 	/* A shortened, inline version of gfs2_trans_begin() */
 	tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64));
 	tr.tr_ip = (unsigned long)__builtin_return_address(0);
+	sb_start_intwrite(sdp->sd_vfs);
 	gfs2_log_reserve(sdp, tr.tr_reserved);
 	BUG_ON(current->journal_info);
 	current->journal_info = &tr;



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH] gfs2: fix s_writers.counter imbalance in gfs2_ail_empty_gl
  2012-09-18  2:50 [Cluster-devel] [PATCH] gfs2: fix s_writers.counter imbalance in gfs2_ail_empty_gl Eric Sandeen
@ 2012-09-18  8:18 ` Steven Whitehouse
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2012-09-18  8:18 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

looks good. Thanks, I'll add it to the -nmw tree in due course,

Steve.

On Mon, 2012-09-17 at 21:50 -0500, Eric Sandeen wrote:
> gfs2_ail_empty_gl() contains an "inline version" of gfs2_trans_begin(),
> so it needs an explicit sb_start_intwrite() as well, to balance the
> sb_end_intwrite() which will be called by gfs2_trans_end().
> 
> With this, xfstest 068 passes on lock_nolock local gfs2.
> Without it, we reach a writer count of -1 and get stuck.
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> ---
> 
> diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
> index 4bdcf37..32cc4fd 100644
> --- a/fs/gfs2/glops.c
> +++ b/fs/gfs2/glops.c
> @@ -94,6 +94,7 @@ static void gfs2_ail_empty_gl(struct gfs2_glock *gl)
>  	/* A shortened, inline version of gfs2_trans_begin() */
>  	tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64));
>  	tr.tr_ip = (unsigned long)__builtin_return_address(0);
> +	sb_start_intwrite(sdp->sd_vfs);
>  	gfs2_log_reserve(sdp, tr.tr_reserved);
>  	BUG_ON(current->journal_info);
>  	current->journal_info = &tr;
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-18  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18  2:50 [Cluster-devel] [PATCH] gfs2: fix s_writers.counter imbalance in gfs2_ail_empty_gl Eric Sandeen
2012-09-18  8:18 ` Steven Whitehouse

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).