gfs2 filesystem and dlm development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andreas Gruenbacher" <agruenba@redhat.com>, gfs2@lists.linux.dev
Subject: Re: [PATCH] gfs2: fix withdraw after SDF_JOURNAL_LIVE clearing
Date: Tue, 01 Dec 2026 01:46:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-242341@kernel.org> (raw)
In-Reply-To: <20261201012531.1996842-1-agruenba@redhat.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] gfs2: missing Fixes trailer for commit 83348905e413 in
  do_withdraw()
--

commit e8478a0e2bf9bcae7296c6bc3fd323129678af6e
Author: Andreas Gruenbacher <agruenba@redhat.com>

> gfs2: fix withdraw after SDF_JOURNAL_LIVE clearing
>
> Right now, we can end up with the following sequence of events: the log
> is non-empty when __gfs2_log_flush() clears the SDF_JOURNAL_LIVE flag,
> the filesystem is withdrawn, do_withdraw() doesn't wait for the log to
> clear because it sees that the SDF_JOURNAL_LIVE flag isn't set, the
> filesystem is unmounted, gfs2_put_super() doesn't wait for the log to
> clear because it sees that the filesystem is already marked read-only,
> and it destroys the filesystem caches while objects in those caches are
> still active.
>
> Fix that by waiting for the log to clear even when the SDF_JOURNAL_LIVE
> flag is no longer set in do_withdraw().
>
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>

[Severity: Low]
Since this fixes the early return on !test_bit(SDF_JOURNAL_LIVE,
&sdp->sd_flags) in do_withdraw(), should it include:

  Fixes: 83348905e413 ("gfs2: Clean up SDF_JOURNAL_LIVE flag handling")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201012531.1996842-1-agruenba@redhat.com?part=1

      reply	other threads:[~2026-12-01  1:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  1:25 [PATCH] gfs2: fix withdraw after SDF_JOURNAL_LIVE clearing Andreas Gruenbacher
2026-12-01  1:46 ` sashiko-bot [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=sashiko-outbox-242341@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agruenba@redhat.com \
    --cc=gfs2@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /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