summaryrefslogtreecommitdiffstats
path: root/drivers/ide/rz1000.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2012-08-21 20:34:07 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-09 14:08:20 +0100
commitc1fd29a11f433ca8ae37723768016ffe6cdd487b (patch)
treed297c9ee730f292a2a789f9bbeceffde075afc26 /drivers/ide/rz1000.c
parent0ee98e2eb0c85f27b6f24a15d59fb54f99a93840 (diff)
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 'drivers/ide/rz1000.c')
0 files changed, 0 insertions, 0 deletions