Hi Coly, please use this as a reference, this is the source code to refer to for the kernel i was able to reproduce this on (https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15.50/) commit 18a33c8dabb88b50b860e0177a73933f2c0ddf68 (tag: v5.15.50) Author: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Date: Sat Jun 25 15:18:40 2022 +0200 Linux 5.15.50 Link: https://lore.kernel.org/r/20220623164322.288837280@xxxxxxxxxxxxxxxxxxx Tested-by: Florian Fainelli <f.fainelli@xxxxxxxxx> Tested-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> Tested-by: Bagas Sanjaya <bagasdotme@xxxxxxxxx> Tested-by: Jon Hunter <jonathanh@xxxxxxxxxx> Tested-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx> Tested-by: Ron Economos <re@xxxxxxxx> Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> I am able to reproduce this bug on older kernels too, like 5.4.0-121. I will also test the latest upstream kernel soon. Regards, Nikhil. On Wed, 29 Jun 2022 at 13:47, Coly Li <colyli@xxxxxxx> wrote: > > > > > 2022年6月29日 16:09,Nikhil Kshirsagar <nkshirsagar@xxxxxxxxx> 写道: > > > > Hi Coly, > > > > Note I used partitions for the bcache as well as the hdd, not sure if > > that's a factor. > > > > the kernel is upstream kernel - > > > > # uname -a > > Linux bronzor 5.15.50-051550-generic #202206251445 SMP Sat Jun 25 > > 14:51:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux > > > Hi Nikhil, > > I don’t find the commit id 767db4b286c3e101ac220b813c873f492d9e4ee8 fro neither Linus tree nor stable tree. > > The tree you mentioned at https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15.50/cod/mainline/v5.15.50 (767db4b286c3e101ac220b813c873f492d9e4ee8), I am not sure whether it is a clone of Linus tree or stable tree. Maybe you may try v5.15.50 from the stable tree (git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git), then we can focus on identical code base. > > Thanks. > > Coly Li > > > >>>>>> > > [snipped] > >>>>>> > >>>>>> Is this a bug? It's in writeback mode. I'd setup the cache and run stuff like, > >>>>>> > >>>>>> echo 0 > /sys/block/bcache0/bcache/sequential_cutoff > >>>>>> > >>>>>> I had also echoed 0 into congested_read_threshold_us, > >>>>>> congested_write_threshold_us. > >>>>>> > >>>>>> echo writeback > /sys/block/bcache0/bcache/cache_mode > >>>>> > >>>>> Where do you get the kernel? If this is stable kernel, could you give me the HEAD commit id? > >>>>> > >>>>> Coly Li > >>>>> > >>> >