[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250306102146.70803a61@kernel.org>
Date: Thu, 6 Mar 2025 10:21:46 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Joe Damato <jdamato@...tly.com>
Cc: netdev@...r.kernel.org, mkarsten@...terloo.ca,
gerhard@...leder-embedded.com, jasowang@...hat.com,
xuanzhuo@...ux.alibaba.com, mst@...hat.com, leiyang@...hat.com, Eugenio
PĂ©rez <eperezma@...hat.com>, Andrew Lunn
<andrew+netdev@...n.ch>, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, "open
list:VIRTIO CORE AND NET DRIVERS" <virtualization@...ts.linux.dev>, open
list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next v5 3/4] virtio-net: Map NAPIs to queues
On Thu, 6 Mar 2025 09:00:02 -0800 Joe Damato wrote:
> + * - wrap all of the work in a lock (perhaps vi->refill_lock?)
> + * - check netif_running() and return early to avoid a race
> + */
probably netdev instance lock is better here, as it will also
protect the return value of netif_running(). IOW we need to
base the "is the device up" test on some state that's protected
by the lock we take.
Powered by blists - more mailing lists