[PATCH 0/2] UBI: Fix torture flag handling in erase and fastmap paths

Zhihao Cheng chengzhihao1 at huawei.com
Sat Jul 4 01:30:39 PDT 2026


This series fixes two issues where the UBI torture test flag is
mishandled, causing physical eraseblocks that should be tortured to
skip the test

Zhihao Cheng (2):
  UBI: Preserve torture flag when rescheduling failed erasures
  UBI: fastmap: Pass to_be_tortured when reusing old fastmap PEBs

 drivers/mtd/ubi/attach.c  |  4 ++--
 drivers/mtd/ubi/fastmap.c |  6 ++++--
 drivers/mtd/ubi/io.c      | 11 +++++++----
 drivers/mtd/ubi/ubi.h     |  4 ++--
 drivers/mtd/ubi/wl.c      | 15 +++++++++------
 5 files changed, 24 insertions(+), 16 deletions(-)

-- 
2.52.0




More information about the linux-mtd mailing list