Subject: Re: [net-next PATCH v6 06/10] netdev-genl: Add netlink framework functions for napi

From: Jakub Kicinski <[email-masked]>
Date: Tue, 24 Oct 2023 15:39:41 -0700

On Mon, 23 Oct 2023 18:33:50 -0700 Amritha Nambiar wrote:
> +	rcu_read_lock();
> +
> +	napi = napi_by_id(napi_id);
> +	if (napi)
> +		err = netdev_nl_napi_fill_one(rsp, napi, info);
> +	else
> +		err = -EINVAL;
> +
> +	rcu_read_unlock();

Is rcu_read_lock always going to be sufficient here?
Reading of the thread, for example, without much locking could
potentially get problematic.