drbd: Replaced md_io_mutex by an atomic: md_io_in_use
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 27 Jun 2011 09:51:46 +0000 (11:51 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 08:22:31 +0000 (10:22 +0200)
commite17117310b73ce6d2340ad46a539d3896a2d6de8
tree66fed6cc939a402f70a51fdebb3b27f1f629b0ea
parentcc94c65015022e7329e80e057e20848581d3f2a5
drbd: Replaced md_io_mutex by an atomic: md_io_in_use

The new function drbd_md_get_buffer() aborts waiting for the buffer
in case the disk failes in the meantime.

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