提交 30c9ba21 编写于 作者: J Jiankang Chen 提交者: Xie XiuQi

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: NJiankang Chen <chenjiankang1@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NLijun Fang <fanglijun3@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 85ad0506
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册