Re: [PATCH net-next v6 2/3] gve: make nic clock reads thread safe

From: Jacob Keller

Date: Thu May 07 2026 - 17:17:53 EST


On 5/7/2026 2:13 PM, Harshitha Ramamurthy wrote:
> From: Ankit Garg <nktgrg@xxxxxxxxxx>
>
> Add a mutex to protect the shared DMA buffer that receives NIC
> timestamp reports. The NIC timestamp will be read from two different
> threads: the periodic worker and upcoming `gettimex64`.
>
> Move clock registration to the last step of initialization to ensure
> that all data needed by the clock module is initialized before
> the clock is exposed to usermode.
>
> Reviewed-by: Joshua Washington <joshwash@xxxxxxxxxx>
> Signed-off-by: Ankit Garg <nktgrg@xxxxxxxxxx>
> Signed-off-by: Jordan Rhee <jordanrhee@xxxxxxxxxx>
> Signed-off-by: Harshitha Ramamurthy <hramamurthy@xxxxxxxxxx>
> ---
Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>