]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drbd: Fixed a stupid copy and paste error
authorPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 5 Oct 2010 14:50:17 +0000 (16:50 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:43 +0000 (18:38 +0200)
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>
drivers/block/drbd/drbd_worker.c

index 83ba63ab23580fd24488612f482b979b048f8afa..166b51ec7b67ad1e39c56f05e153587889418a2f 100644 (file)
@@ -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)