Re: [PATCH v2] mm/khugepaged: replace mutex_lock/mutex_unlock usage with guard macro

From: David Hildenbrand (Arm)

Date: Thu Jul 30 2026 - 10:02:33 EST


On 7/29/26 13:56, jakov novak wrote:
> I guess the error checking could be moved inside the if
> (!khugepaged_thread) block like:
>
> if (!khugepaged_thread) {
> struct task_struct *new_thread = kthread_run...
>
> if (IS_ERR(new_thread)) {
> pr_err...
> return PTR_ERR(new_thread);
> }
>
> khugepaged_thread = new_thread;
> }
>
> I can send a v3 with these changes if this looks good to everybody.
>

Yes, please so so.

--
Cheers,

David