Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp387906rdb; Fri, 5 Jan 2024 13:25:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpDscyr1Sz0CgQAjb03/tSg2Z1QQzR3eyoJCunGyyoIpEbEfMieODSmlNEFGS0G9oCcIJA X-Received: by 2002:a05:6a20:4924:b0:199:3787:630 with SMTP id ft36-20020a056a20492400b0019937870630mr1123222pzb.93.1704489912132; Fri, 05 Jan 2024 13:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704489912; cv=none; d=google.com; s=arc-20160816; b=zumdZUgYS60ypXAOtdwu0fjvKLcbFt1uI5uhmxS7uMdAEitJeMDOf8Om2QwnnI9/zT jP4wfxPC1X0/dFkzwyWgpblJ71xiOeNXrenFOkRGd3FFG9qbwbnReo58KtWN5aZQB4A4 nbgGEd0ShuopkvUzjKC/1tyAwmHTi3nL1b4fsmfO5P0jLNMsZ+Vq2uAexQ6fWt6tzOMc ltyKE5/1nkaNTlqUz7fkewzcRSWCz+P4dw4xC2Yyg8XXbGw8HTkypwtP4+J0GrZv4rez m9PFu8OAara4q7KGvOWHjQVWXotUKamCPa4qa3Yv9yqQ9xQWy89Voz7pw2p7uPZnBlqF SUBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:references:in-reply-to :from:organization:dkim-signature; bh=75M8eF5s016P/5B35ga2w64gX7gBQ1+kVA/a0fAEe38=; fh=r3Qoj1T3soLXtS2huvyNUVxW9c3EdQU9VUMbyDIYMbY=; b=r9G9eyNLmCBw5jgU9174pk1fGCeyQAhMLufuhi2hFfpXy2WbhoTHz9yLAocSUr8ngQ T0E99CiFQ9j2DmgxUqQu0hOTBoMFnN+LXcPdH+cne/IQdAhUbOAQEvHDFcndE0mPe8Sh EJPyx7dZY9J0ZGZhFqG/6UXAt+b1Sn0feUMSOpe571oXsxfCP3wlWjn1wPzwVmTyeRgk 3/RhmUClVMTJ9I/MmM9AecSwRGPEkqaO7uotOeuX4Q5vswX0gFkM19mJPNyWreCixA2l Xfw6U+5XvrE/H+wnqea9OE8eFU9Fil3R/n6t1wWnIaLT6keJ5cUuJZM/LqzR6/N2FWJ3 ib5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y1PXmq3S; spf=pass (google.com: domain of linux-kernel+bounces-18365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p4-20020a056a0026c400b006d9fac3a70fsi1824675pfw.370.2024.01.05.13.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 13:25:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y1PXmq3S; spf=pass (google.com: domain of linux-kernel+bounces-18365-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 658A1283CDF for ; Fri, 5 Jan 2024 21:25:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D78D42D780; Fri, 5 Jan 2024 21:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y1PXmq3S" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DFE2358A4 for ; Fri, 5 Jan 2024 21:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704489899; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=75M8eF5s016P/5B35ga2w64gX7gBQ1+kVA/a0fAEe38=; b=Y1PXmq3SzF+mlxA56J+hobHg/w/SGcymTDJBD7d9RqQR8zjx8DOQeVKavq6Z9IJ1WK2d5q OYVHT/fH2iXQSnYQymIhvIzgUA2IhfqB13rhXsyepZHY/e+K0q+EjwV/l/f2VTBEe/8E6e ywBLCzWr5R+SYdfOdQda54LFfnjX46w= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-681-xDQUnqG-NDuKOaqB0CT4_Q-1; Fri, 05 Jan 2024 16:24:54 -0500 X-MC-Unique: xDQUnqG-NDuKOaqB0CT4_Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7AC081C04180; Fri, 5 Jan 2024 21:24:54 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 456B31121306; Fri, 5 Jan 2024 21:24:53 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1366725.1704474341@warthog.procyon.org.uk> References: <1366725.1704474341@warthog.procyon.org.uk> Cc: dhowells@redhat.com, Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rxrpc: Fix skbuff cleanup of call's recvmsg_queue and rx_oos_queue Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1412894.1704489892.1@warthog.procyon.org.uk> Date: Fri, 05 Jan 2024 21:24:52 +0000 Message-ID: <1412895.1704489892@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 David Howells wrote: > Fix rxrpc_cleanup_ring() to use rxrpc_purge_queue() rather than > skb_queue_purge() so that the count of outstanding skbuffs is correctly > updated when a failed call is cleaned up. > > Without this rmmod may hang waiting for rxrpc_n_rx_skbs to become zero. > > Reported-by: Marc Dionne > Signed-off-by: David Howells > cc: "David S. Miller" > cc: Eric Dumazet > cc: Jakub Kicinski > cc: Paolo Abeni > cc: linux-afs@lists.infradead.org > cc: netdev@vger.kernel.org Fixes: 5d7edbc9231e ("rxrpc: Get rid of the Rx ring")