diff options
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r-- | block/blk-throttle.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 5a58e779912b..a9664fa0b609 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c | |||
@@ -929,12 +929,7 @@ throtl_schedule_delayed_work(struct throtl_data *td, unsigned long delay) | |||
929 | 929 | ||
930 | /* schedule work if limits changed even if no bio is queued */ | 930 | /* schedule work if limits changed even if no bio is queued */ |
931 | if (total_nr_queued(td) || td->limits_changed) { | 931 | if (total_nr_queued(td) || td->limits_changed) { |
932 | /* | 932 | mod_delayed_work(kthrotld_workqueue, dwork, delay); |
933 | * We might have a work scheduled to be executed in future. | ||
934 | * Cancel that and schedule a new one. | ||
935 | */ | ||
936 | __cancel_delayed_work(dwork); | ||
937 | queue_delayed_work(kthrotld_workqueue, dwork, delay); | ||
938 | throtl_log(td, "schedule work. delay=%lu jiffies=%lu", | 933 | throtl_log(td, "schedule work. delay=%lu jiffies=%lu", |
939 | delay, jiffies); | 934 | delay, jiffies); |
940 | } | 935 | } |