commit | db23491c77207ef6bec2b232238710de4755db6a | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Mon May 04 19:07:04 2020 -0700 |
committer | Kees Cook <keescook@chromium.org> | Tue May 12 09:14:18 2020 -0700 |
tree | 4b01e10c8d0d6dffff27593b9f1e4780c7b2b9e1 | |
parent | 47af61ffb19baa8df2b109582f87f7622fbe85cc [diff] |
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: Kees Cook <keescook@chromium.org>