drbd: Fixed race condition in drbd_queue_bitmap_io
authorPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 16 Nov 2010 14:30:44 +0000 (15:30 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:35:03 +0000 (11:35 +0100)
commit22afd7ee94c1c5857323b677267ba8bace09bcef
tree4c704ede7399dfdd8bfba9dd7af0518a5cdeb691
parent8869d683b7491467fd39fcbe79756fce3e6f35e7
drbd: Fixed race condition in drbd_queue_bitmap_io

May only test for ap_bio_cnt == 0 under req_lock. It can increase
only under req_lock.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c