[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJM8Rb=zYDbvUjwV+MKqA4m3nBzau+OkPHKtquc=yF1kQ@mail.gmail.com>
Date: Thu, 23 Jan 2025 09:35:24 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, pabeni@...hat.com,
andrew+netdev@...n.ch, horms@...nel.org, dan.carpenter@...aro.org,
kevinbrace@...cecomputerlab.com, romieu@...zoreil.com, kuniyu@...zon.com
Subject: Re: [PATCH net v2 6/7] eth: via-rhine: fix calling napi_enable() in
atomic context
On Thu, Jan 23, 2025 at 1:45 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> napi_enable() may sleep now, take netdev_lock() before rp->lock.
> napi_enable() is hidden inside init_registers().
>
> Note that this patch orders netdev_lock after rp->task_lock,
> to avoid having to take the netdev_lock() around disable path.
>
> Fixes: 413f0271f396 ("net: protect NAPI enablement with netdev_lock()")
> Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
> Link: https://lore.kernel.org/dcfd56bc-de32-4b11-9e19-d8bd1543745d@stanley.mountain
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists