All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wang Yugui <wangyugui@e16-tech.com>
To: Su Yue <l@damenly.su>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: fstest/btrfs/220 tigger a check-integrity warning
Date: Fri, 22 Oct 2021 12:49:03 +0800	[thread overview]
Message-ID: <20211022124902.B018.409509F4@e16-tech.com> (raw)
In-Reply-To: <pmryhp99.fsf@damenly.su>

Hi,

> > xfstest/btrfs/220 tigger check-integrity warning.
> >
> > btrfs source:  5.15.0-0.rc5 with btrfs pull for rc6
> >
> > btrfs kernel config:
> > CONFIG_BTRFS_FS=m
> > CONFIG_BTRFS_FS_POSIX_ACL=y
> > CONFIG_BTRFS_FS_CHECK_INTEGRITY=y
> > # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
> > # CONFIG_BTRFS_DEBUG is not set
> > CONFIG_BTRFS_ASSERT=y
> > CONFIG_BTRFS_FS_REF_VERIFY=y
> >
> > reproduce frequency: 100%
> >
> > [ 1917.552758] btrfs: attempt to write superblock which
> > references block M
> > @5242880 (sdb2/5242880/0) which is not flushed out of disk's
> > write cache (block
> > flush_gen=1, dev->flush_gen=0)!
> >
> Anything special about /dev/sdb? I can reproduce if test device is zram
> since zram seems to handle FUA in its way.
> For normal device backing by file/disk, the test always passed on my side.

Thanks for this info.  

I checked it on some disks.
passed:
	SSD/SAS	PX05SMQ040
failed:
	SSD/SAS		HUSMH842
	SSD/NVMe	SM963/SM1715

I noticed that PX05SMQ040 is 'WCE:1/write back', but HUSMH842 is'WCE:0/write
through', both SM963 and SM1715 are 
' [0:0] : 0     Volatile Write Cache Not Present/write through'

I failed to test it on zram.
#mkfs.btrfs /dev/zram0
btrfs-progs v5.10.1
See http://btrfs.wiki.kernel.org for more information.

Detected a SSD, turning off metadata duplication.  Mkfs with -m dup if you want to force metadata duplication.
ERROR: '/dev/zram0' is too small to make a usable filesystem
ERROR: minimum size for each btrfs device is 47185920

Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2021/10/22



  reply	other threads:[~2021-10-22  4:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14  7:29 fstest/btrfs/220 tigger a check-integrity warning Wang Yugui
2021-10-15  5:38 ` Wang Yugui
2021-10-21  6:13 ` Su Yue
2021-10-22  4:49   ` Wang Yugui [this message]
2021-10-22  5:07     ` Wang Yugui
2021-10-22  8:26       ` [PATCH] btrfs: fix CHECK_INTEGRITY warning when !QUEUE_FLAG_WC wangyugui
2021-10-22 14:42         ` Filipe Manana
2021-11-02  5:32         ` kernel test robot
2021-11-02  5:32           ` kernel test robot
2021-11-02  5:49           ` Wang Yugui
2021-11-02  5:49             ` Wang Yugui

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=20211022124902.B018.409509F4@e16-tech.com \
    --to=wangyugui@e16-tech.com \
    --cc=l@damenly.su \
    --cc=linux-btrfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.