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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user