Skip to content
Commit cab12fd0 authored by Kees Cook's avatar Kees Cook
Browse files

pstore: Convert "psinfo" locking to mutex



Currently pstore can only have a single backend attached at a time, and it
tracks the active backend via "psinfo", under a lock. The locking for this
does not need to be a spinlock, and in order to avoid may_sleep() issues
during future changes to pstore_unregister(), switch to a mutex instead.

Link: https://lore.kernel.org/lkml/20200506152114.50375-4-keescook@chromium.org/
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent c30b20cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment