linux/drivers/hwtracing/stm
Alexander Shishkin b4ca34aaf7 stm class: Fix a race in unlinking
There is a window in stm_source_link_drop(), during which the source's
link may change before locks are acquired. When this happens, it throws
a warning, since this is not an expected scenario.

This patch handles the race in such a way that if the link appears to
have changed by the time we took the locks, it will release them and
repeat the whole unlinking procedure from the beginning, unless the
other contender beat us to it.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-20 14:09:14 -08:00
..
console.c
core.c stm class: Fix a race in unlinking 2016-02-20 14:09:14 -08:00
dummy_stm.c stm class: dummy_stm: Create multiple devices 2016-02-20 14:09:14 -08:00
heartbeat.c stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
Kconfig stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
Makefile stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
policy.c stm class: Support devices with multiple instances 2016-02-20 14:09:14 -08:00
stm.h stm class: Guard output assignment against concurrency 2016-02-20 14:09:14 -08:00