Commit 7383506c authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Jens Axboe

drbd: use drbd specific ratelimit instead of global printk_ratelimit

using the global printk_ratelimit() may mask other messages.
Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent d255e5ff
...@@ -1725,7 +1725,7 @@ static inline void __drbd_chk_io_error_(struct drbd_conf *mdev, int forcedetach, ...@@ -1725,7 +1725,7 @@ static inline void __drbd_chk_io_error_(struct drbd_conf *mdev, int forcedetach,
switch (mdev->ldev->dc.on_io_error) { switch (mdev->ldev->dc.on_io_error) {
case EP_PASS_ON: case EP_PASS_ON:
if (!forcedetach) { if (!forcedetach) {
if (printk_ratelimit()) if (__ratelimit(&drbd_ratelimit_state))
dev_err(DEV, "Local IO failed in %s." dev_err(DEV, "Local IO failed in %s."
"Passing error on...\n", where); "Passing error on...\n", where);
break; break;
......
...@@ -3783,7 +3783,7 @@ _drbd_insert_fault(struct drbd_conf *mdev, unsigned int type) ...@@ -3783,7 +3783,7 @@ _drbd_insert_fault(struct drbd_conf *mdev, unsigned int type)
if (ret) { if (ret) {
fault_count++; fault_count++;
if (printk_ratelimit()) if (__ratelimit(&drbd_ratelimit_state))
dev_warn(DEV, "***Simulating %s failure\n", dev_warn(DEV, "***Simulating %s failure\n",
_drbd_fault_str(type)); _drbd_fault_str(type));
} }
......
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