cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2] Don't use journal lock type
Date: Tue, 07 Aug 2007 16:09:56 +0100	[thread overview]
Message-ID: <1186499396.8765.717.camel@quoit> (raw)
In-Reply-To: <20070807140209.GB19779@redhat.com>

Hi,

On Tue, 2007-08-07 at 09:02 -0500, David Teigland wrote:
> On Tue, Aug 07, 2007 at 02:52:31PM +0100, Steven Whitehouse wrote:
> > Hi,
> > 
> > On Tue, 2007-08-07 at 08:45 -0500, David Teigland wrote:
> > > On Tue, Aug 07, 2007 at 10:26:06AM +0100, Steven Whitehouse wrote:
> > > >  		error = gfs2_glock_nq_num(sdp, sdp->sd_lockstruct.ls_jid,
> > > > -					  &gfs2_journal_glops,
> > > > +					  &gfs2_inode_glops,
> > > >  					  LM_ST_EXCLUSIVE, LM_FLAG_NOEXP,
> > > >  					  &sdp->sd_journal_gh);
> > > 
> > > The lock for journal N is now the same as the lock for the inode at
> > > block N -- that doesn't work.
> > > 
> > 
> > Yes, thats the point of the patch, after all journals are now inodes. If
> > we don't do that then two things happen:
> > 
> >  - Accesses of the journal inodes via the meta fs will not be "in sync"
> > with what the kernel sees
> >  - More importantly, and the reason why this patch was created is that
> > upon recovery of a journal, the cache wasn't being flushed resulting in
> > the blocks being sometimes "seen" again the next time a node recovers
> > the same remote journal.
> 
> The journal with id N does not live in the inode at fs block N.  So,
> you're still using two different locks for the journal, and one of them
> now collides with something else.
> 
I see now! Well spotted, and I'll send a new patch shortly to use the
inode's own lock (which is available in both places anyway),

Steve.




      reply	other threads:[~2007-08-07 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07  9:26 [Cluster-devel] [GFS2] Don't use journal lock type Steven Whitehouse
2007-08-07 13:45 ` David Teigland
2007-08-07 13:52   ` Steven Whitehouse
2007-08-07 14:02     ` David Teigland
2007-08-07 15:09       ` Steven Whitehouse [this message]

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=1186499396.8765.717.camel@quoit \
    --to=swhiteho@redhat.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 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).