Skip to content

Commit

Permalink
drbd: Fixed a stupid copy and paste error
Browse files Browse the repository at this point in the history
This caused rs_planed to be not in sync with the content of the fifo.
That in turn could cause that the resync comes to a complete halt.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed Oct 14, 2010
1 parent 00b4253 commit f10f262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static void fifo_set(struct fifo_buffer *fb, int value)
int i;

for (i = 0; i < fb->size; i++)
fb->values[i] += value;
fb->values[i] = value;
}

static int fifo_push(struct fifo_buffer *fb, int value)
Expand Down

0 comments on commit f10f262

Please sign in to comment.