Re: [PATCH net-next v3 5/6] page_pool: add a lockdep check for recycling in hardirq

From: Jesper Dangaard Brouer
Date: Fri Aug 04 2023 - 06:31:02 EST



On 03/08/2023 20.20, Alexander Lobakin wrote:
From: Jakub Kicinski<kuba@xxxxxxxxxx>

Page pool use in hardirq is prohibited, add debug checks
to catch misuses. IIRC we previously discussed using
DEBUG_NET_WARN_ON_ONCE() for this, but there were concerns
that people will have DEBUG_NET enabled in perf testing.
I don't think anyone enables lockdep in perf testing,
so use lockdep to avoid pushback and arguing :)

Signed-off-by: Jakub Kicinski<kuba@xxxxxxxxxx>
Signed-off-by: Alexander Lobakin<aleksander.lobakin@xxxxxxxxx>

I like this.

Acked-by: Jesper Dangaard Brouer <hawk@xxxxxxxxxx>