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

pstore: Convert "records_list" locking to mutex



The pstorefs internal list lock doesn't need to be a spinlock and will
create problems when trying to access the list in the subsequent patch
that will walk the pstorefs records during pstore_unregister(). Change
this to a mutex to avoid may_sleep() warnings when unregistering devices.

Link: https://lore.kernel.org/lkml/20200506152114.50375-6-keescook@chromium.org/
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 47af61ff
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