From 30c9ba211b045c0bcf8ecd61355926c21ceb1276 Mon Sep 17 00:00:00 2001 From: Jiankang Chen Date: Tue, 5 Nov 2019 15:07:32 +0800 Subject: [PATCH] drivers/iommu: Add pg fault worker queue prio ascend inclusion category: bugfix bugzilla: NA CVE: NA ------------------- IO page fault can not be handled in time, because of low priority. Increase priority of IO page fault worker queue to WQ_HIGHPRI. Signed-off-by: Jiankang Chen Signed-off-by: Chen Jun Signed-off-by: Lijun Fang Reviewed-by: Hanjun Guo Signed-off-by: Yang Yingliang --- drivers/iommu/io-pgfault.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iommu/io-pgfault.c b/drivers/iommu/io-pgfault.c index 9025e50dff66..0e3cf33d4642 100644 --- a/drivers/iommu/io-pgfault.c +++ b/drivers/iommu/io-pgfault.c @@ -410,7 +410,11 @@ iopf_queue_alloc(const char *name, iopf_queue_flush_t flush, void *cookie) * that's dealt with, the high-level function can handle groups out of * order. */ +#ifdef CONFIG_ARCH_ASCEND + queue->wq = alloc_workqueue("iopf_queue/%s", WQ_HIGHPRI, 0, name); +#else queue->wq = alloc_workqueue("iopf_queue/%s", WQ_UNBOUND, 0, name); +#endif if (!queue->wq) { kfree(queue); return NULL; -- GitLab