drbd: move bitmap write from resync_finished to after_state_change
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 16 Dec 2010 13:47:39 +0000 (14:47 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:43:29 +0000 (11:43 +0100)
commit02851e9f00d78dbc8ded0aacbf9bf3b631d627b3
treed7a5611fef479c13ff70cccace8f22a963ba6df8
parent84e7c0f7d123d64d97e1f789ad2f23a72fe8981f
drbd: move bitmap write from resync_finished to after_state_change

We must not call it directly from resync_finished,
as we may be in either receiver or worker context there.

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