Skip to content

Commit

Permalink
Revert "bdi: Do not use freezable workqueue"
Browse files Browse the repository at this point in the history
This reverts commit b30af52.

This commit causes devices to randomly freeze on 4.14 and 4.19 kernels.
This happens mostly during suspend. Force restarting the device via button combination leaves no ramoops or logs.

Tashar02: I am not getting any random freeze without this commit.
	  But let's use it to make the workqueu freezable and unbound to save power for our own benefits
	  regardless of the reason for this revert.

Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Signed-off-by: Jprimero15 <[email protected]>
  • Loading branch information
freak07 authored and Jprimero15 committed Feb 13, 2024
1 parent f603277 commit 544be00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/backing-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ static int __init default_bdi_init(void)
{
int err;

bdi_wq = alloc_workqueue("writeback", WQ_MEM_RECLAIM | WQ_UNBOUND |
WQ_SYSFS, 0);
bdi_wq = alloc_workqueue("writeback", WQ_MEM_RECLAIM | WQ_FREEZABLE |
WQ_UNBOUND | WQ_SYSFS, 0);
if (!bdi_wq)
return -ENOMEM;

Expand Down

0 comments on commit 544be00

Please sign in to comment.