summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_proc.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-05-06 17:19:30 +0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-05-18 03:28:08 +0400
commit162f3ec7f026784ff2e216f19147d67e2f8ccd56 (patch)
treeef211a8348dc4862da7ce21c315aed2e37e8de7b /drivers/block/drbd/drbd_proc.c
parenta8cdfd8d3bf0b6d2bbe792f5e74f54ccc6bc1d4f (diff)
downloadlinux-162f3ec7f026784ff2e216f19147d67e2f8ccd56.tar.xz
drbd: Fixes to the new delay_probes code
* Only send delay_probes with protocol 93 or newer * drbd_send_delay_probes() is called only from worker context, no atomic_t needed for delay_seq Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_proc.c')
-rw-r--r--drivers/block/drbd/drbd_proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_proc.c b/drivers/block/drbd/drbd_proc.c
index 81dea0a85933..d0f1767ea4c3 100644
--- a/drivers/block/drbd/drbd_proc.c
+++ b/drivers/block/drbd/drbd_proc.c
@@ -86,8 +86,7 @@ static void drbd_syncer_progress(struct drbd_conf *mdev, struct seq_file *seq)
mdev->data_delay / 1000,
(mdev->data_delay % 1000) / 100);
else if (mdev->state.conn == C_SYNC_SOURCE)
- seq_printf(seq, " delay_probe: %d\n\t",
- atomic_read(&mdev->delay_seq));
+ seq_printf(seq, " delay_probe: %u\n\t", mdev->delay_seq);
/* see drivers/md/md.c
* We do not want to overflow, so the order of operands and