From: David Teigland <teigland@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2] Don't use journal lock type
Date: Tue, 7 Aug 2007 09:02:10 -0500 [thread overview]
Message-ID: <20070807140209.GB19779@redhat.com> (raw)
In-Reply-To: <1186494751.8765.713.camel@quoit>
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.
next prev parent reply other threads:[~2007-08-07 14:02 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 [this message]
2007-08-07 15:09 ` Steven Whitehouse
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=20070807140209.GB19779@redhat.com \
--to=teigland@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).