Merge "ion: Use kthread_run for ion heap pool kworker threads"

This commit is contained in:
qctecmdr 2020-06-03 12:43:49 -07:00 • committed by Gerrit - the friendly Code Review server
commit bfaa5be36f

View file

@ -670,8 +670,8 @@ static struct task_struct *ion_create_kworker(struct ion_page_pool **pools,
attr.sched_nice = ION_KTHREAD_NICE_VAL;
buf = cached ? "cached" : "uncached";
thread = kthread_create(ion_sys_heap_worker, pools,
"ion-pool-%s-worker", buf);
thread = kthread_run(ion_sys_heap_worker, pools,
"ion-pool-%s-worker", buf);
if (IS_ERR(thread)) {
pr_err("%s: failed to create %s worker thread: %ld\n",
__func__, buf, PTR_ERR(thread));