On Fri, Aug 16, 2024 at 07:59:52AM +0000, Shinichiro Kawasaki wrote: > I also observed a different but similar failure symptom when I ran f2fs workload > using a zoned TCMU device. I found that the trigger is the commit f874d7210d88 > ("scsi: sd: Keep the discard mode stable") that Chris found. After the commit, > the device has unexpected non-zero values for the sysfs attributes > queue/discard_max_bytes and queue/discard_max_hw_bytes. I found that Martin's > fix avoids my failure symptom also. With the fix, the failure disappeared and > the sysfs attribute have the expected value 0. Thanks! Btw, zoned devices in all relevant standards can support discards, despite it being rather pointless. So we'll probably want to fix up f2fs to handle that case correctly and not issue discards just to be on the safe side.