public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Dave Chinner <david@fromorbit.com>
Cc: chandan.babu@gmail.com, linux-xfs@vger.kernel.org, sandeen@sandeen.net
Subject: Re: [PATCH 2/2] xfs: fix log recovery when unknown rocompat bits are set
Date: Wed, 30 Aug 2023 08:23:35 -0700	[thread overview]
Message-ID: <20230830152335.GI28186@frogsfrogsfrogs> (raw)
In-Reply-To: <ZO6N/8JBzF3Ev92x@dread.disaster.area>

On Wed, Aug 30, 2023 at 10:31:59AM +1000, Dave Chinner wrote:
> On Tue, Aug 29, 2023 at 04:09:35PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> > 
> > Fix log recovery to proceed on a readonly mount if the primary sb
> > advertises unknown rocompat bits.  We used to allow this, but due to a
> > misunderstanding between Eric and Darrick back in 2018, we accidentally
> > changed the superblock write verifier to shutdown the fs over that exact
> > scenario.  As a result, the log cleaning that occurs at the end of the
> > mounting process fails.
> > 
> > We now allow writing of the superblock if there are unknown rocompat
> > bits set, but only if the filesystem is read only.  Hence we still have
> > to remove all ro state toggling that occurs around the log mount calls.
> 
> APart from the wording of the commit message, this all looks good.
> It took me a little while to parse what it meant paragraph meant,
> so can I suggest something like:
> 
> 	Log recovery has always run on read only mounts, even where the
> 	primary superblock advertises unknown rocompat bits. Due to a
> 	misunderstanding between Eric and Darrick back in 2018, we accidentally
> 	changed the superblock write verifier to shutdown the fs over that exact
> 	scenario.  As a result, the log cleaning that occurs at the end of the
> 	mounting process fails if there are unknown rocompat bits set.
> 
> 	As we now allow writing of the superblock if there are unknown
> 	rocompat bits set on a RO mount, we no longer want to turn off RO
> 	state to allow log recovery to succeed on a RO mount.  Hence we also
> 	remove all the (now unnecessary) RO state toggling from the log
> 	recovery path.

Ok, I've copied that in verbatim.  Thanks for reviewing these!

--D

> Other than that,
> 
> Reviewed-by: Dave Chinner <dchinner@redhat.com>
> 
> -- 
> Dave Chinner
> david@fromorbit.com

      reply	other threads:[~2023-08-30 18:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 23:09 [PATCHSET v2 0/2] xfs: fix ro mounting with unknown rocompat features Darrick J. Wong
2023-08-29 23:09 ` [PATCH 1/2] xfs: allow inode inactivation during a ro mount log recovery Darrick J. Wong
2023-08-30  0:32   ` Dave Chinner
2023-08-29 23:09 ` [PATCH 2/2] xfs: fix log recovery when unknown rocompat bits are set Darrick J. Wong
2023-08-30  0:31   ` Dave Chinner
2023-08-30 15:23     ` Darrick J. Wong [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=20230830152335.GI28186@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=chandan.babu@gmail.com \
    --cc=david@fromorbit.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sandeen@sandeen.net \
    /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