On Sun, Feb 11, 2024 at 06:06:27PM +0100, Martin Steigerwald wrote: > Hi Holger! > > CC'ing BCacheFS mailing list. > > My original mail is here: > > https://lore.kernel.org/linux-usb/5264d425-fc13-6a77-2dbf-6853479051a0@xxxxxxxxxxxxxxxxxxxxxx/T/ > #m5ec9ecad1240edfbf41ad63c7aeeb6aa6ea38a5e > > Holger Hoffstätte - 11.02.24, 17:02:29 CET: > > On 2024-02-11 16:42, Martin Steigerwald wrote: > > > Hi! > > > I am trying to put data on an external Kingston XS-2000 4 TB SSD using > > > self-compiled Linux 6.7.4 kernel and encrypted BCacheFS. I do not > > > think BCacheFS has any part in the errors I see, but if you disagree > > > feel free to CC the BCacheFS mailing list as you reply. > > > > This is indeed a known bug with bcachefs on USB-connected devices. > > Apply the following commit: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commi > > t/fs/bcachefs?id=3e44f325f6f75078cdcd44cd337f517ba3650d05 > > > > This and some other commits are already scheduled for -stable. > > Thanks! > > Oh my. I was aware of some bug fixes coming for stable. I briefly looked > through them, but now I did not make a connection. > > I will wait for 6.7.5 and retry then I bet. That doesn't look related - the device claims to not support flush or fua, and the bug resulted in us not sending flush/fua devices; the main thing people would see without that patch, on 6.8, would be an immediate -EOPNOTSUP on the first flush journal write. He only got errors after an hour or so, or 10 minutes with UAS disabled; we send flushes once a second. Sounds like a screwy device.