diff options
author | 2012-08-21 20:34:07 +0200 | |
---|---|---|
committer | 2012-11-09 14:08:20 +0100 | |
commit | c1fd29a11f433ca8ae37723768016ffe6cdd487b (patch) | |
tree | d297c9ee730f292a2a789f9bbeceffde075afc26 /tools/perf/scripts/python/check-perf-trace.py | |
parent | drbd: temporarily suspend io in drbd_adm_disk_opts (diff) | |
download | linux-dev-c1fd29a11f433ca8ae37723768016ffe6cdd487b.tar.xz linux-dev-c1fd29a11f433ca8ae37723768016ffe6cdd487b.zip |
drbd: Fix a race condition that can lead to a BUG()
If the preconditions for a state change change after the wait_event() we
might hit the BUG() statement in conn_set_state().
With holding the spin_lock while evaluating the condition AND until the
actual state change we ensure the the preconditions can not change anymore.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions