[PATCH v2 0/2] Fix high cpu usage of ubi_bgt thread

From: Zhihao Cheng
Date: Fri May 06 2022 - 03:03:26 EST


v1->v2:
Update fm pool filling strategy, consider reserve enough free count
for fastmap non anchor pebs while filling fm_wl_pool.
Remove 'fm_next_anchor' and check 'fm_anchor' during wear leveling.
Check wl_pool for free peb before wear leveling.

Zhihao Cheng (2):
ubi: fastmap: Fix high cpu usage of ubi_bgt by making sure wl_pool not
empty
ubi: fastmap: Check wl_pool for free peb before wear leveling

drivers/mtd/ubi/fastmap-wl.c | 115 ++++++++++++++++++++++++++++-------
drivers/mtd/ubi/fastmap.c | 11 ----
drivers/mtd/ubi/ubi.h | 4 +-
drivers/mtd/ubi/wl.c | 33 ++++++----
drivers/mtd/ubi/wl.h | 2 +
5 files changed, 117 insertions(+), 48 deletions(-)

--
2.31.1