From: Wang Yugui <wangyugui@e16-tech.com>
To: Su Yue <l@damenly.su>, linux-btrfs@vger.kernel.org
Subject: Re: fstest/btrfs/220 tigger a check-integrity warning
Date: Fri, 22 Oct 2021 13:07:42 +0800 [thread overview]
Message-ID: <20211022130742.7119.409509F4@e16-tech.com> (raw)
In-Reply-To: <20211022124902.B018.409509F4@e16-tech.com>
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'
When I changed the SSD/SAS from write through to write back,
The result of fstest/btrfs/220 on HUSMH842 is changed from failed to
passed.
# sdparm --set=WCE --save /dev/sda
so there is some process in btrfs wrongly depends on block disk write
back?
Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2021/10/22
next prev parent reply other threads:[~2021-10-22 5:10 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
2021-10-22 5:07 ` Wang Yugui [this message]
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=20211022130742.7119.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.