Merge tag 'block-5.16-2021-12-19' of git://git.kernel.dk/linux-block
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Dec 2021 20:38:53 +0000 (12:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Dec 2021 20:38:53 +0000 (12:38 -0800)
Pull block revert from Jens Axboe:
 "It turns out that the fix for not hammering on the delayed work timer
  too much caused a performance regression for BFQ, so let's revert the
  change for now.

  I've got some ideas on how to fix it appropriately, but they should
  wait for 5.17"

* tag 'block-5.16-2021-12-19' of git://git.kernel.dk/linux-block:
  Revert "block: reduce kblockd_mod_delayed_work_on() CPU consumption"

block/blk-core.c

index c1833f9..1378d08 100644 (file)
@@ -1484,8 +1484,6 @@ EXPORT_SYMBOL(kblockd_schedule_work);
 int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork,
                                unsigned long delay)
 {
-       if (!delay)
-               return queue_work_on(cpu, kblockd_workqueue, &dwork->work);
        return mod_delayed_work_on(cpu, kblockd_workqueue, dwork, delay);
 }
 EXPORT_SYMBOL(kblockd_mod_delayed_work_on);