From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DB02C6FD18 for ; Wed, 19 Apr 2023 17:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjDSRMs (ORCPT ); Wed, 19 Apr 2023 13:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjDSRMq (ORCPT ); Wed, 19 Apr 2023 13:12:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7655B3580; Wed, 19 Apr 2023 10:12:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E3356409A; Wed, 19 Apr 2023 17:12:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE377C433EF; Wed, 19 Apr 2023 17:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681924364; bh=1Oa2QE6ih7rB23hE5gjm+d/eHjyLoOs35oR0Oh4fIZM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u9z+Z36cl6kVNymoTyEYj73e/3f4rW9yObh42jTy22wR+IRsaRQpGx9uGmbSLqOMY xf18YOVeI52Wtoldfss0Z8Lokibkq/8a2PQX6wh9+9obtniMimvB2yPM/NbMMYym6i CGRtNpTTmAhiW976hvVUCuTfSNZkM6u79dhQEyxOvYwrMHgU57xvkjmWS0PZjzOv45 BIsj+41ckWp3tAN798JKrgtN0bZ13gNynQzJ+zg4sUpxqnhUfiMTRZb3fuV4nlpm/m WiJesMoV2AIYMPwHuRxnO1wmflF1ep1DjM5TleLutGPkcDG1upAd5wFzISlwpdn4Kr WeAnv4WX+yHsQ== Date: Wed, 19 Apr 2023 10:12:42 -0700 From: Jakub Kicinski To: Jesper Dangaard Brouer Cc: Lorenzo Bianconi , brouer@redhat.com, Eric Dumazet , netdev@vger.kernel.org, hawk@kernel.org, ilias.apalodimas@linaro.org, davem@davemloft.net, pabeni@redhat.com, bpf@vger.kernel.org, lorenzo.bianconi@redhat.com, nbd@nbd.name, Toke Hoiland Jorgensen Subject: Re: issue with inflight pages from page_pool Message-ID: <20230419101242.44f2d143@kernel.org> In-Reply-To: References: <20230417112346.546dbe57@kernel.org> <20230417120837.6f1e0ef6@kernel.org> <20230417163210.2433ae40@kernel.org> <3449df3e-1133-3971-06bb-62dd0357de40@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 19 Apr 2023 17:36:20 +0200 Jesper Dangaard Brouer wrote: > This reminds me that Jakub's recent defer patches returning pages > 'directly' to the page_pool alloc-cache, will actually result in this > kind of bug. This is because page_pool_destroy() assumes that pages > cannot be returned to alloc-cache, as driver will have "disconnected" RX > side. We need to address this bug separately. Mm, I think you're right. The NAPI can get restarted with a different page pool and the old page pool will still think it's in use.