1
0
Fork 0
alistair23-linux/drivers/hwtracing
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
..
coresight coresight: implementing 'cpu_id()' API 2016-02-07 22:12:18 -08:00
intel_th intel_th: Use real device index in the node names 2016-02-20 14:09:14 -08:00
stm stm class: Fix a race in unlinking 2016-02-20 14:09:14 -08:00