diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-05 10:50:17 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 12:38:43 -0400 |
commit | f10f262349762c96ab247b6108af3a30b52b6f5a (patch) | |
tree | a93a849cdfcad4264ac6313a9806254756a36013 | |
parent | 00b425377d60e67e86721d4ce6d7cbf131a5d0fd (diff) |
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 <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
421 | int i; | 421 | int i; |
422 | 422 | ||
423 | for (i = 0; i < fb->size; i++) | 423 | for (i = 0; i < fb->size; i++) |
424 | fb->values[i] += value; | 424 | fb->values[i] = value; |
425 | } | 425 | } |
426 | 426 | ||
427 | static int fifo_push(struct fifo_buffer *fb, int value) | 427 | static int fifo_push(struct fifo_buffer *fb, int value) |