drbd: Do not try to free tl_hash in drbd_disconnect() when IO is suspended
authorPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 24 Jun 2010 12:34:40 +0000 (14:34 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 13:08:27 +0000 (15:08 +0200)
commitf70b3511599c49a3dc20ae349d6cdc5af47659df
tree1d5971f48f5fe95988df64f5ab1f22333c492dc9
parent8f488156c0635dcc9c668737d05386113a745ef9
drbd: Do not try to free tl_hash in drbd_disconnect() when IO is suspended

We may not free tl_hash when IO is suspended, since we can not wait
until ap_bio_cnt reaches zero.

We can do this after susp reched 0, since then tl_clear was called

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