Skip to content

Commit

Permalink
drbd: Get rid of "ASSERTION FAILED: tconn->current_epoch->list not em…
Browse files Browse the repository at this point in the history
…pty"

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed Nov 8, 2012
1 parent 615e087 commit d10b4ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4440,6 +4440,11 @@ static int drbd_disconnected(struct drbd_conf *mdev)

drbd_finish_peer_reqs(mdev);

/* This second workqueue flush is necessary, since drbd_finish_peer_reqs()
might have issued a work again. The one before drbd_finish_peer_reqs() is
necessary to reclain net_ee in drbd_finish_peer_reqs(). */
drbd_flush_workqueue(mdev);

kfree(mdev->p_uuid);
mdev->p_uuid = NULL;

Expand Down

0 comments on commit d10b4ea

Please sign in to comment.