Skip to content

Commit 4017ffb

Browse files
Mike Snitzerebiggers
authored andcommitted
UPSTREAM: dm verity: remove WQ_CPU_INTENSIVE flag since using WQ_UNBOUND
The documentation [1] says that WQ_CPU_INTENSIVE is "meaningless" for unbound wq. So remove WQ_CPU_INTENSIVE from the verify_wq allocation. 1. https://www.kernel.org/doc/html/latest/core-api/workqueue.html#flags Suggested-by: Maksym Planeta <mplaneta@os.inf.tu-dresden.de> Signed-off-by: Mike Snitzer <snitzer@kernel.org> Bug: 233247259 (cherry picked from commit 43fa47cb116daa48f731fa5c00d781200addb2ae) Signed-off-by: Nathan Huckleberry <nhuck@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:407f5e1a1ddada4de7085798973bbf9135e3bfc5) Merged-In: I13c8916a24274d586a5f462541345d149c602ca3 Change-Id: I080cb85750206cd9988259003422464bb6b04ac9
1 parent a6c4727 commit 4017ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-verity-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ static int verity_ctr(struct dm_target *ti, unsigned argc, char **argv)
12811281
}
12821282

12831283
/* WQ_UNBOUND greatly improves performance when running on ramdisk */
1284-
v->verify_wq = alloc_workqueue("kverityd", WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus());
1284+
v->verify_wq = alloc_workqueue("kverityd", WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus());
12851285
if (!v->verify_wq) {
12861286
ti->error = "Cannot allocate workqueue";
12871287
r = -ENOMEM;

0 commit comments

Comments
 (0)