public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Liu <jeff.liu@oracle.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: "xfs@oss.sgi.com" <xfs@oss.sgi.com>
Subject: Re: [PATCH] xfs: fix assertion failure at xfs_setattr_nonsize
Date: Fri, 22 Nov 2013 23:34:07 +0800	[thread overview]
Message-ID: <528F796F.6070601@oracle.com> (raw)
In-Reply-To: <20131122151735.GA2405@infradead.org>

On 11/22 2013  23:17 PM, Christoph Hellwig wrote:
> On Fri, Nov 22, 2013 at 11:11:57PM +0800, Jeff Liu wrote:
>> To remain the current semantics under the debug mode, this fix add
>> an additional judgement to make this assertion only works for non-CRC
>> enabled version.
> 
>>  		if (!gid_eq(igid, gid)) {
>>  			if (XFS_IS_QUOTA_RUNNING(mp) && XFS_IS_GQUOTA_ON(mp)) {
>> -				ASSERT(!XFS_IS_PQUOTA_ON(mp));
>> +#ifdef DEBUG quota
>> +				if (!xfs_sb_version_has_pquotino(&mp->m_sb))
>> +					ASSERT(!XFS_IS_PQUOTA_ON(mp));
>> +#endif
>>  				ASSERT(mask & ATTR_GID);
>>  				ASSERT(gdqp);
> 
> I'd just kill this assert.
I hesitated about killing this assertion or hold the line before, will fix it soon.
> And it would be good to get some coverage
> of running with all three quotas types into xfstests by default..
Definitely!  I just found another race problem between dquot attach and quota off via
fsstress as per Dave's suggestion for another fix. :)

Thanks,
-Jeff

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-11-22 15:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22 15:11 [PATCH] xfs: fix assertion failure at xfs_setattr_nonsize Jeff Liu
2013-11-22 15:17 ` Christoph Hellwig
2013-11-22 15:34   ` Jeff Liu [this message]
2013-11-22 15:38     ` Christoph Hellwig
2013-11-22 15:56       ` Jeff Liu

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=528F796F.6070601@oracle.com \
    --to=jeff.liu@oracle.com \
    --cc=hch@infradead.org \
    --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