Skip to content

Commit a6e8dc4

Browse files
htejunJens Axboe
authored andcommitted
bio-integrity: mark kintegrityd_wq highpri and CPU intensive
Work items processed by kintegrityd_wq won't block much, may burn a lot of CPU cycles and affect IO latency. Use alloc_workqueue() to mark it highpri and CPU intensive with max concurrency of 1. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 89b90be commit a6e8dc4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎fs/bio-integrity.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,12 @@ void __init bio_integrity_init(void)
782782
{
783783
unsigned int i;
784784

785-
kintegrityd_wq = create_workqueue("kintegrityd");
785+
/*
786+
* kintegrityd won't block much but may burn a lot of CPU cycles.
787+
* Make it highpri CPU intensive wq with max concurrency of 1.
788+
*/
789+
kintegrityd_wq = alloc_workqueue("kintegrityd", WQ_MEM_RECLAIM |
790+
WQ_HIGHPRI | WQ_CPU_INTENSIVE, 1);
786791
if (!kintegrityd_wq)
787792
panic("Failed to create kintegrityd\n");
788793

0 commit comments

Comments
 (0)