Commit 9544708c authored by Vicki Pfau's avatar Vicki Pfau Committed by Greg Kroah-Hartman
Browse files

HID: hid-steam: Clean up locking



[ Upstream commit 691ead12 ]

This cleans up the locking logic so that the spinlock is consistently used for
access to a small handful of struct variables, and the mutex is exclusively and
consistently used for ensuring that mutliple threads aren't trying to
send/receive reports at the same time. Previously, only some report
transactions were guarded by this mutex, potentially breaking atomicity. The
mutex has been renamed to reflect this usage.

Signed-off-by: default avatarVicki Pfau <vi@endrift.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
Stable-dep-of: 79504249 ("HID: hid-steam: Move hidraw input (un)registering to work")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 463b3783
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment