pstore: Remove filesystem records when backend is unregistered
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | pstore: Drop useless try_module_get() for backendfs/ | +0 | 0 replies | |
| 2/10 | pstore: Rename "pstore_lock" to "psinfo_lock"fs/ | +5 | 0 replies | |
| 3/10 | pstore: Convert "psinfo" locking to mutexfs/ | +4 | 0 replies | |
| 4/10 | pstore: Rename "allpstore" to "records_list"fs/ | +10 | 0 replies | |
| 5/10 | pstore: Convert "records_list" locking to mutexfs/ | +7 | 0 replies | |
| 6/10 | pstore: Add proper unregister lock checkingfs/ | +16 | 0 replies | |
| 7/10 | pstore: Refactor pstorefs record list removalfs/ | +13 | 0 replies | |
| 8/10 | pstore: Add locking around superblock changesfs/ fs/ fs/ | +45 | 0 replies | |
| 9/10 | pstore: Do not leave timer disabled for next backendfs/ | +19 | 0 replies | |
| 10/10 | pstore: Remove filesystem records when backend is unregisteredfs/ fs/ fs/ | +34 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/10] pstore: Remove filesystem records when backend is unregistered
Hi,
This fixes a long-standing problem[1] with pstore where the filesystem view of backend records was not updated when the backend was unloaded (in a modular build) through pstore_unregister(). This series is mostly refactoring and improvements to the various locking semantics around management of the active backend and the filesystem mount before ultimately providing the routine to walk the filesystem to remove the records associated with a given backend.
I'm still doing more build and runtime testing, but I just wanted to get this posted so I can let other people look at it if they want while the testing finishes.
Thanks!
-Kees
[1] https://lore.kernel.org/lkml/[email protected]
Kees Cook (10):
pstore: Drop useless try_module_get() for backend
pstore: Rename "pstore_lock" to "psinfo_lock"
pstore: Convert "psinfo" locking to mutex
pstore: Rename "allpstore" to "records_list"
pstore: Convert "records_list" locking to mutex
pstore: Add proper unregister lock checking
pstore: Refactor pstorefs record list removal
pstore: Add locking around superblock changes
pstore: Do not leave timer disabled for next backend
pstore: Remove filesystem records when backend is unregistered
fs/pstore/inode.c | 127 +++++++++++++++++++++++++++++++------------ fs/pstore/internal.h | 2 +- fs/pstore/platform.c | 72 ++++++++++++++---------- 3 files changed, 134 insertions(+), 67 deletions(-)
Signature · 1 line
2.20.1