tech-kern archive

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

Re: racy acccess in kern_runq.c



On Fri, Dec 06, 2019 at 05:22:39PM +0900, Kengo NAKAHARA wrote:

>  	/* Update the worker */
> -	worker_ci = hci;
> +	atomic_swap_ptr(&worker_ci, hci);

Why atomic_swap_ptr() not atomic_store_relaxed()?  I don't see any bug that
it fixes.  Other than that it look OK to me.

Cheers,
Andrew


Home | Main Index | Thread Index | Old Index