Commit a509c934 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

Add rate limit to error message, in case resync is aborted due to disk failure

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 75841257
...@@ -1319,7 +1319,8 @@ void drbd_rs_complete_io(struct drbd_conf *mdev, sector_t sector) ...@@ -1319,7 +1319,8 @@ void drbd_rs_complete_io(struct drbd_conf *mdev, sector_t sector)
bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL;
if (!bm_ext) { if (!bm_ext) {
spin_unlock_irqrestore(&mdev->al_lock, flags); spin_unlock_irqrestore(&mdev->al_lock, flags);
dev_err(DEV, "drbd_rs_complete_io() called, but extent not found\n"); if (__ratelimit(&drbd_ratelimit_state))
dev_err(DEV, "drbd_rs_complete_io() called, but extent not found\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment