Skip to content

pstore: Remove filesystem records when backend is unregistered

Kees Cook lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10pstore: Drop useless try_module_get() for backendfs/pstore/platform.c+0 -80 replies
2/10pstore: Rename "pstore_lock" to "psinfo_lock"fs/pstore/platform.c+5 -50 replies
3/10pstore: Convert "psinfo" locking to mutexfs/pstore/platform.c+4 -40 replies
4/10pstore: Rename "allpstore" to "records_list"fs/pstore/inode.c+10 -100 replies
5/10pstore: Convert "records_list" locking to mutexfs/pstore/inode.c+7 -100 replies
6/10pstore: Add proper unregister lock checkingfs/pstore/platform.c+16 -20 replies
7/10pstore: Refactor pstorefs record list removalfs/pstore/inode.c+13 -60 replies
8/10pstore: Add locking around superblock changesfs/pstore/inode.c fs/pstore/internal.h fs/pstore/platform.c+45 -260 replies
9/10pstore: Do not leave timer disabled for next backendfs/pstore/platform.c+19 -150 replies
10/10pstore: Remove filesystem records when backend is unregisteredfs/pstore/inode.c fs/pstore/internal.h fs/pstore/platform.c+34 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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