public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Donald Douwsma <donaldd@sgi.com>
Cc: xfs-oss <xfs@oss.sgi.com>
Subject: Re: Review: Fix dbflush panic in xfs_qm_sync
Date: Thu, 18 Oct 2007 17:16:01 +0100	[thread overview]
Message-ID: <20071018161601.GA21492@infradead.org> (raw)
In-Reply-To: <4713F7D3.2090201@sgi.com>

On Tue, Oct 16, 2007 at 09:29:23AM +1000, Donald Douwsma wrote:
> The recent behaviour layer removal dropped the check for quotas that have 
> been
> requested at mount time but have subsequently been turned off. This results
> in a panic when accessing m_quotainfo which has been freed.
> 
> This patch adds the check originally made by xfs_qm_syncall() to 
> xfs_qm_sync()

Hmm.  We do the same check just a few lines below, but inbetween
we access ->m_quotainfo to take the lock.  I was under the impression
that's the only safe way to check anyway, but ->m_quotainfo might not
actually be present.  It might me better to move the lock into xfs_mount
directly, but it's embedded into a xfs_dqhash and there's some complex
mess with gazillions of macros around it.

So I suspect restoring it to the original state might be good enough.

      parent reply	other threads:[~2007-10-18 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 23:29 Review: Fix dbflush panic in xfs_qm_sync Donald Douwsma
2007-10-16  5:18 ` Lachlan McIlroy
2007-10-16  6:07   ` David Chinner
2007-10-17  1:54     ` Donald Douwsma
2007-10-18 16:16 ` Christoph Hellwig [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=20071018161601.GA21492@infradead.org \
    --to=hch@infradead.org \
    --cc=donaldd@sgi.com \
    --cc=xfs@oss.sgi.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