aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stm.h
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-02-15 19:12:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 14:09:14 -0800
commitb4ca34aaf78ed0cdfc15956d377064104257a437 (patch)
tree69100826c2b2d596afa8e4792a430bec32761ad1 /include/linux/stm.h
parentstm class: Fix unbalanced module/device refcounting (diff)
downloadlinux-dev-b4ca34aaf78ed0cdfc15956d377064104257a437.tar.xz
linux-dev-b4ca34aaf78ed0cdfc15956d377064104257a437.zip
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>
Diffstat (limited to 'include/linux/stm.h')
0 files changed, 0 insertions, 0 deletions