Skip to content

Commit

Permalink
drbd: Do not Oops when C_STANDALONE when uuid gets generated
Browse files Browse the repository at this point in the history
Got introduces with

commit 0c3f345
Author: Philipp Reisner <philipp.reisner@linbit.com>
Date:   Mon May 17 16:10:43 2010 +0200

    drbd: Create new current UUID as late as possible

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Philipp Reisner authored and Jens Axboe committed May 21, 2010
1 parent df96e96 commit 31a31dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,10 @@ static int w_new_current_uuid(struct drbd_conf *mdev, struct drbd_work *w, int c
{
if (get_ldev(mdev)) {
drbd_uuid_new_current(mdev);
drbd_send_uuids(mdev);
if (get_net_conf(mdev)) {
drbd_send_uuids(mdev);
put_net_conf(mdev);
}
drbd_md_sync(mdev);
put_ldev(mdev);
}
Expand Down

0 comments on commit 31a31dc

Please sign in to comment.