Skip to content

Commit

Permalink
Revert "block: queue work on power efficient wq"
Browse files Browse the repository at this point in the history
This reverts commit 695588f.

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: If9123fe1d4abd88da507b89e83c93c05e395f853
  • Loading branch information
TogoFire committed May 24, 2023
1 parent ad5f58a commit aba2afa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions block/blk-ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ void put_io_context(struct io_context *ioc)
if (atomic_long_dec_and_test(&ioc->refcount)) {
spin_lock_irqsave(&ioc->lock, flags);
if (!hlist_empty(&ioc->icq_list))
queue_work(system_power_efficient_wq,
&ioc->release_work);
schedule_work(&ioc->release_work);
else
free_ioc = true;
spin_unlock_irqrestore(&ioc->lock, flags);
Expand Down
12 changes: 4 additions & 8 deletions block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,11 +1557,9 @@ static void __disk_unblock_events(struct gendisk *disk, bool check_now)

intv = disk_events_poll_jiffies(disk);
if (check_now)
queue_delayed_work(system_freezable_power_efficient_wq,
&ev->dwork, 0);
queue_delayed_work(system_freezable_wq, &ev->dwork, 0);
else if (intv)
queue_delayed_work(system_freezable_power_efficient_wq,
&ev->dwork, intv);
queue_delayed_work(system_freezable_wq, &ev->dwork, intv);
out_unlock:
spin_unlock_irqrestore(&ev->lock, flags);
}
Expand Down Expand Up @@ -1604,8 +1602,7 @@ void disk_flush_events(struct gendisk *disk, unsigned int mask)
spin_lock_irq(&ev->lock);
ev->clearing |= mask;
if (!ev->block)
mod_delayed_work(system_freezable_power_efficient_wq,
&ev->dwork, 0);
mod_delayed_work(system_freezable_wq, &ev->dwork, 0);
spin_unlock_irq(&ev->lock);
}

Expand Down Expand Up @@ -1698,8 +1695,7 @@ static void disk_check_events(struct disk_events *ev,

intv = disk_events_poll_jiffies(disk);
if (!ev->block && intv)
queue_delayed_work(system_freezable_power_efficient_wq,
&ev->dwork, intv);
queue_delayed_work(system_freezable_wq, &ev->dwork, intv);

spin_unlock_irq(&ev->lock);

Expand Down

0 comments on commit aba2afa

Please sign in to comment.