Skip to content

Commit

Permalink
bio-integrity: mark kintegrityd_wq highpri and CPU intensive
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
htejun authored and Jens Axboe committed Jan 3, 2011
1 parent 89b90be commit a6e8dc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fs/bio-integrity.c
Original file line number Diff line number Diff line change
@@ -782,7 +782,12 @@ void __init bio_integrity_init(void)
{
unsigned int i;

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

0 comments on commit a6e8dc4

Please sign in to comment.