Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3036116ybg; Mon, 28 Oct 2019 06:28:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJluC//bkEZWi6tSxnqz09G+SJ/UXksTolZw4uUqnBkLRvSJm9y6xb74clDgNGEGbT20IB X-Received: by 2002:a05:6402:150a:: with SMTP id f10mr10925536edw.235.1572269324504; Mon, 28 Oct 2019 06:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572269324; cv=none; d=google.com; s=arc-20160816; b=p77RRXwiHnFju4sbDZUD/tgDMcDrkl2rVPoUs9IwMvIUzAaHZw6aHPNijWu/rBbfhi Mlcekf2uIZ7tN8U4JBMdhAsqcFn8/DnbQXV8YB02JqG04QlavtOmaTIQQwhyhPpy0HA2 OrbJ+mNUjSpzB5H/3Q6kEjZigDCAjft+uSn00lPPIFA8uZiSATW0RrhxdD4Vmb6zZeFh SzPl95le04NWGgMW4tefqB9mGIRLx5WF3JA6B+ps46e0TftXMyTW9BmDmZ9aBvJEQAF1 Kgqpprr4eq6siLdod3THEfo5rNGKf/wig+HFVK9rldYPs/JjBV0dE5KopETtkNohNNx7 AGrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=5nDmBxYfgQw+vZ7p+kkEiLMnyQJtTPnKgzERK92oRbE=; b=ZSCW9hhQ55nZ2ep+QvlPWqvi0rDib/IFSXMucj1pomW/trxrYUMc2rXrwIO0DnOUMY +eGOzZTSM36YhkYK5if3iq5NlTlnoQ7uSLa0I7qYfGNfClvXTRfgJTAjHQJM25vQGR0A +DNmz6S9RTNlHvCQrTNDuw7cPBN0/9FB47JmpTVd38o35Z6ONTVthp/pHUTUvbN2tNT4 OPL1fjM1UfVMmtfEIx1Oober4sD3r0/NNbYJVo0sJsnyXPjnNHLI5Dmawzv6q0syyUCB yqE785OgPVwcoEAx5aw957I38LcJ3fWSo7Qqok4K7ORfLEXg4KL4UhCOTxbr1yakygBv UqtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si5931676ejj.183.2019.10.28.06.28.06; Mon, 28 Oct 2019 06:28:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728550AbfJ1DYc (ORCPT + 99 others); Sun, 27 Oct 2019 23:24:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:54336 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727119AbfJ1DYc (ORCPT ); Sun, 27 Oct 2019 23:24:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ECAA9AB9B; Mon, 28 Oct 2019 03:24:30 +0000 (UTC) From: NeilBrown To: "J. Bruce Fields" Date: Mon, 28 Oct 2019 14:24:23 +1100 Cc: linux-nfs@vger.kernel.org Subject: Re: uncollected nfsd open owners In-Reply-To: <20191025152047.GB16053@pick.fieldses.org> References: <87mudpfwkj.fsf@notabene.neil.brown.name> <20191025152047.GB16053@pick.fieldses.org> Message-ID: <87a79lft7c.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain On Fri, Oct 25 2019, J. Bruce Fields wrote: > >> Also, should we put a cond_resched() in some or all of those loops in >> __destroy_client() ?? > > Looks like it helped find a bug in this case.... > > Destroying a client that has a ton of active state should be an unusual > situation. > > I don't know, maybe? I'm sure this isn't the only spinlock-protected > kernel code where we don't have a strict bound on a loop, what's been > the practice elsewhere? Worst case, the realtime code allows preempting > spinlocks, right? git grep cond_resched_lock But most of __destroy_client isn't protected by a spinlock.... I dunno - maybe it doesn't matter. > Might be nice to have some sort of limits on the number of objects (like > stateowners) that can be created. But it's a pain when we get one of > those limits wrong. (See > git log -L :nfsd4_get_drc_mem:fs/nfsd/nfs4state.c.) Grin... > NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl22X2gACgkQOeye3VZi gbnS/A//QqM+iymbvanXHUWRO7eLpNpEZ9oY9QrBd48yIlVBlfmAhAo1pfRq4Du0 ujXRge4W9MCABilWFL6U+ZITUa/CJciGprdGkgCbqyYJOYFxryNAgKV9U+wfEnO1 PAfIWiwIrFGJey8r+eAEinj8j4fD1uSUbvH846Mh2DtXSpjiLwoNAcSa2ib9xLLd BUia80cXTaX9wRfsr+dL8Ovq4Uy/rdSnVBaEs2TqiJLZKdJaJJbZearMsCmNo5JU EIzgahepHhGA6Zp0v+UXSR1drHEC9DUOu+qoeTgULTxPyqNdu07D/Cq2TKcJ2vVR gm7Kd5GCbdZa923V4sTOdvN9J4VcorLkxNx5O2j2G0FvtZhqWCyV1Lsz8P1PylSG yxKsi8qRy9KQ1JtN7wjNSSEO4EXbYp8mkngwmqcCTmCrO8pck+oblPQLFtXVXWO5 GQqKASoIgezFk2M0O/xz35RNNsae15Af/NJRb0b1XYEa1Ik0V8JaEdxQB4uWAXou b1jya8qHTyTY8OODnr2MSnaw+wVNKeCeaAqpWgac/g3PDGM3NB4b3W14Y1w4ZJPI meqa1IJGKstvBxbXjVUZvwzs61jgNgCji56kdYzca2OkYLdhhjqm7V27Rm6eyt27 ECmvDkfxEi7Uk9xRPGXjpzEwssdt6MZrwIyVHlilG7xaOmxZs48= =qx9v -----END PGP SIGNATURE----- --=-=-=--