Re: [PATCH 1/3] kfence: await for allocation using wait_event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Apr 2021 10:50:25 Marco Elver wrote:
> +
> +	WRITE_ONCE(kfence_timer_waiting, true);
> +	smp_mb(); /* See comment in __kfence_alloc(). */

This is not needed given task state change in wait_event().

> +	wait_event_timeout(allocation_wait, atomic_read(&kfence_allocation_gate), HZ);
> +	smp_store_release(&kfence_timer_waiting, false); /* Order after wait_event(). */
> +




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux