forked from Minki/linux
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>
This commit is contained in:
parent
89b90be2d8
commit
a6e8dc46ff
@ -782,7 +782,12 @@ void __init bio_integrity_init(void)
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
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)
|
if (!kintegrityd_wq)
|
||||||
panic("Failed to create kintegrityd\n");
|
panic("Failed to create kintegrityd\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user