From: Philipp Reisner Date: Tue, 5 Oct 2010 14:50:17 +0000 (+0200) Subject: drbd: Fixed a stupid copy and paste error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f10f262349762c96ab247b6108af3a30b52b6f5a;p=linux-beck.git drbd: Fixed a stupid copy and paste error 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 Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 83ba63ab2358..166b51ec7b67 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -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)