Re: [RFC PATCH 6/8] hugetlb: make free_huge_page irq safe

2021-03-22 Thread Michal Hocko
On Fri 19-03-21 15:42:07, Mike Kravetz wrote: > Commit c77c0a8ac4c5 ("mm/hugetlb: defer freeing of huge pages if in > non-task context") was added to address the issue of free_huge_page > being called from irq context. That commit hands off free_huge_page > processing to a workqueue if !in_task.

Re: [RFC PATCH 6/8] hugetlb: make free_huge_page irq safe

2021-03-21 Thread Mike Kravetz
On 3/19/21 3:42 PM, Mike Kravetz wrote: > Commit c77c0a8ac4c5 ("mm/hugetlb: defer freeing of huge pages if in > non-task context") was added to address the issue of free_huge_page > being called from irq context. That commit hands off free_huge_page > processing to a workqueue if !in_task. Howeve

[RFC PATCH 6/8] hugetlb: make free_huge_page irq safe

2021-03-19 Thread Mike Kravetz
Commit c77c0a8ac4c5 ("mm/hugetlb: defer freeing of huge pages if in non-task context") was added to address the issue of free_huge_page being called from irq context. That commit hands off free_huge_page processing to a workqueue if !in_task. However, as seen in [1] this does not cover all cases.