linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* UBI Fastmap stabilization
@ 2014-10-29 12:45 Richard Weinberger
  2014-10-29 12:45 ` [PATCH 01/35] UBI: Add initial support for fastmap self checks Richard Weinberger
                   ` (34 more replies)
  0 siblings, 35 replies; 57+ messages in thread
From: Richard Weinberger @ 2014-10-29 12:45 UTC (permalink / raw)
  To: dedekind1; +Cc: linux-mtd, linux-kernel, tlinder

This series brings a massive stabilization update for UBI Fastmap.
During the last weeks many issues have been identified and fixed.
Both power-cut and excessive run-time tests uncovered bugs which
got addressed. No on-disk layout change was needed.

Besides of plain bug fixes this series introduces also much better Fastmap
self checks. These can be enabled by the UBI debugfs knob "chk_fastmap".
It will enable checks which ensure that every PEB is known to Fastmap
while writing a fastmap to flash and will run an expensive check while attaching.
To have Fastmap checking enabled by default a new UBI module parameter was
added, "fm_debug". This parameter is useful for the attach self check. Upon
attach time no debugfs is available and therefore the check cannot be enabled.
The attach self check will load the fastmap data structure and will issue a full
scan to verify it. Therefore, don't enable it in production, it will make
attachment by Fastmap slow.

Power-cut related issues have been found by my power-cut emulation patches for UBI.
These patches are currently under internal review/polishing and will be published
next week.

Patch 29 to 35 are a massive cleanup as requested by Artem. It moves all Fastmap
specific code out of wl.c. Some Fastmap functions are very closely related to the WL
sub-system, these function are now in fastmap-wl.c located. The amount of Fastmap
specific #ifdefs have been reduced to a minimum.

After this series went mainline I'll create a list of stable patches and make sure
that all Fastmap fixes go into -stable.

Enjoy!
//richard

git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc.git fastmap_upgrade1

[PATCH 01/35] UBI: Add initial support for fastmap self checks
[PATCH 02/35] UBI: Fix stale pointers in ubi->lookuptbl
[PATCH 03/35] UBI: Fastmap: Add self check to detect absent PEBs
[PATCH 04/35] UBI: Fastmap: Care about the protection queue
[PATCH 05/35] UBI: Fastmap: Ensure that only one fastmap work is
[PATCH 06/35] UBI: Fastmap: Ensure that all fastmap work is done upon
[PATCH 07/35] UBI: Fastmap: Fix races in ubi_wl_get_peb()
[PATCH 08/35] UBI: Split __wl_get_peb()
[PATCH 09/35] UBI: Fastmap: Make ubi_refill_pools() fair
[PATCH 10/35] UBI: Fastmap: Fix memory leaks while closing the WL
[PATCH 11/35] UBI: Fastmap: Don't allocate new ubi_wl_entry objects
[PATCH 12/35] UBI: Fastmap: Notify user in case of an
[PATCH 13/35] UBI: Fastmap: Wrap fastmap specific function in a ifdef
[PATCH 14/35] UBI: Fastmap: Fix fastmap usage in ubi_volume_notify()
[PATCH 15/35] UBI: Fastmap: Enhance fastmap checking
[PATCH 16/35] UBI: Fastmap: Fix memory leak while attaching
[PATCH 17/35] UBI: Remove alloc_ai() slab name from parameter list
[PATCH 18/35] UBI: Fastmap: Fix race in ubi_eba_atomic_leb_change()
[PATCH 19/35] UBI: Fastmap: Remove bogus ubi_assert()
[PATCH 20/35] UBI: Fastmap: Remove eba_orphans logic
[PATCH 21/35] UBI: Fastmap: Switch to ro mode if invalidate_fastmap()
[PATCH 22/35] UBI: Fastmap: Make WL pool size 50% of user pool size
[PATCH 23/35] UBI: Fastmap: Add new module parameter fm_debug
[PATCH 24/35] UBI: Fastmap: Fix leb_count unbalance
[PATCH 25/35] UBI: Fastmap: Fix race after ubi_wl_get_peb()
[PATCH 26/35] UBI: Fastmap: Set used_ebs only for static volumes
[PATCH 27/35] UBI: Fastmap: Locking updates
[PATCH 28/35] UBI: Fastmap: Make self_check_eba() depend on fastmap
[PATCH 29/35] UBI: Move fastmap specific functions out of wl.c
[PATCH 30/35] UBI: Add accessor functions for WL data structures
[PATCH 31/35] UBI: Fastmap: Wire up WL accessor functions
[PATCH 32/35] UBI: Fastmap: Introduce ubi_fastmap_init()
[PATCH 33/35] UBI: Fastmap: Introduce may_reserve_for_fm()
[PATCH 34/35] UBI: Fastmap: Remove else after return.
[PATCH 35/35] UBI: Fastmap: Add blank line after declarations

^ permalink raw reply	[flat|nested] 57+ messages in thread

end of thread, other threads:[~2014-12-04 12:40 UTC | newest]

Thread overview: 57+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 12:45 UBI Fastmap stabilization Richard Weinberger
2014-10-29 12:45 ` [PATCH 01/35] UBI: Add initial support for fastmap self checks Richard Weinberger
2014-12-04 10:52   ` Tanya Brokhman
2014-10-29 12:45 ` [PATCH 02/35] UBI: Fix stale pointers in ubi->lookuptbl Richard Weinberger
2014-11-05 15:14   ` Artem Bityutskiy
2014-12-04 11:00   ` Tanya Brokhman
2014-12-04 11:04     ` Richard Weinberger
2014-12-04 12:37       ` Tanya Brokhman
2014-12-04 12:40         ` Richard Weinberger
2014-10-29 12:45 ` [PATCH 03/35] UBI: Fastmap: Add self check to detect absent PEBs Richard Weinberger
2014-11-05 15:23   ` Artem Bityutskiy
2014-11-05 15:56     ` Richard Weinberger
2014-11-05 16:01       ` Artem Bityutskiy
2014-11-05 16:05         ` Richard Weinberger
2014-11-06  7:55           ` Artem Bityutskiy
2014-10-29 12:45 ` [PATCH 04/35] UBI: Fastmap: Care about the protection queue Richard Weinberger
2014-10-29 12:45 ` [PATCH 05/35] UBI: Fastmap: Ensure that only one fastmap work is scheduled Richard Weinberger
2014-11-05 15:42   ` Artem Bityutskiy
2014-11-05 15:47     ` Richard Weinberger
2014-10-29 12:45 ` [PATCH 06/35] UBI: Fastmap: Ensure that all fastmap work is done upon WL shutdown Richard Weinberger
2014-11-05 15:45   ` Artem Bityutskiy
2014-11-05 15:49     ` Richard Weinberger
2014-11-05 15:54       ` Artem Bityutskiy
2014-11-05 15:59         ` Richard Weinberger
2014-11-05 16:05           ` Artem Bityutskiy
2014-10-29 12:45 ` [PATCH 07/35] UBI: Fastmap: Fix races in ubi_wl_get_peb() Richard Weinberger
2014-11-05 15:51   ` Artem Bityutskiy
2014-10-29 12:45 ` [PATCH 08/35] UBI: Split __wl_get_peb() Richard Weinberger
2014-11-06  7:51   ` Artem Bityutskiy
2014-11-06  7:55     ` Richard Weinberger
2014-10-29 12:45 ` [PATCH 09/35] UBI: Fastmap: Make ubi_refill_pools() fair Richard Weinberger
2014-10-29 12:45 ` [PATCH 10/35] UBI: Fastmap: Fix memory leaks while closing the WL sub-system Richard Weinberger
2014-10-29 12:45 ` [PATCH 11/35] UBI: Fastmap: Don't allocate new ubi_wl_entry objects Richard Weinberger
2014-10-29 12:45 ` [PATCH 12/35] UBI: Fastmap: Notify user in case of an ubi_update_fastmap() failure Richard Weinberger
2014-10-29 12:45 ` [PATCH 13/35] UBI: Fastmap: Wrap fastmap specific function in a ifdef Richard Weinberger
2014-10-29 12:45 ` [PATCH 14/35] UBI: Fastmap: Fix fastmap usage in ubi_volume_notify() Richard Weinberger
2014-10-29 12:45 ` [PATCH 15/35] UBI: Fastmap: Enhance fastmap checking Richard Weinberger
2014-10-29 12:45 ` [PATCH 16/35] UBI: Fastmap: Fix memory leak while attaching Richard Weinberger
2014-10-29 12:45 ` [PATCH 17/35] UBI: Remove alloc_ai() slab name from parameter list Richard Weinberger
2014-10-29 12:45 ` [PATCH 18/35] UBI: Fastmap: Fix race in ubi_eba_atomic_leb_change() Richard Weinberger
2014-10-29 12:45 ` [PATCH 19/35] UBI: Fastmap: Remove bogus ubi_assert() Richard Weinberger
2014-10-29 12:45 ` [PATCH 20/35] UBI: Fastmap: Remove eba_orphans logic Richard Weinberger
2014-10-29 12:45 ` [PATCH 21/35] UBI: Fastmap: Switch to ro mode if invalidate_fastmap() fails Richard Weinberger
2014-10-29 12:45 ` [PATCH 22/35] UBI: Fastmap: Make WL pool size 50% of user pool size Richard Weinberger
2014-10-29 12:45 ` [PATCH 23/35] UBI: Fastmap: Add new module parameter fm_debug Richard Weinberger
2014-10-29 12:45 ` [PATCH 24/35] UBI: Fastmap: Fix leb_count unbalance Richard Weinberger
2014-10-29 12:45 ` [PATCH 25/35] UBI: Fastmap: Fix race after ubi_wl_get_peb() Richard Weinberger
2014-10-29 12:45 ` [PATCH 26/35] UBI: Fastmap: Set used_ebs only for static volumes Richard Weinberger
2014-10-29 12:45 ` [PATCH 27/35] UBI: Fastmap: Locking updates Richard Weinberger
2014-10-29 12:45 ` [PATCH 28/35] UBI: Fastmap: Make self_check_eba() depend on fastmap self checking Richard Weinberger
2014-10-29 12:45 ` [PATCH 29/35] UBI: Move fastmap specific functions out of wl.c Richard Weinberger
2014-10-29 12:45 ` [PATCH 30/35] UBI: Add accessor functions for WL data structures Richard Weinberger
2014-10-29 12:45 ` [PATCH 31/35] UBI: Fastmap: Wire up WL accessor functions Richard Weinberger
2014-10-29 12:45 ` [PATCH 32/35] UBI: Fastmap: Introduce ubi_fastmap_init() Richard Weinberger
2014-10-29 12:45 ` [PATCH 33/35] UBI: Fastmap: Introduce may_reserve_for_fm() Richard Weinberger
2014-10-29 12:45 ` [PATCH 34/35] UBI: Fastmap: Remove else after return Richard Weinberger
2014-10-29 12:45 ` [PATCH 35/35] UBI: Fastmap: Add blank line after declarations Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).