From nobody Wed Nov 24 08:01:56 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C40F21888A90; Wed, 24 Nov 2021 08:02:11 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "vtr.rulingia.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzYPv2B7nz3pYP; Wed, 24 Nov 2021 08:02:10 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (2001-44b8-31fc-0d00-c8ab-09b5-49e2-9ade.static.ipv6.internode.on.net [IPv6:2001:44b8:31fc:d00:c8ab:9b5:49e2:9ade]) by vtr.rulingia.com (8.16.1/8.16.1) with ESMTPS id 1AO821r2064630 (version=TLSv1.3 cipher=AEAD-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Nov 2021 19:02:07 +1100 (AEDT) (envelope-from peter@rulingia.com) DKIM-Filter: OpenDKIM Filter v2.10.3 vtr.rulingia.com 1AO821r2064630 X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.16.1/8.16.1) with ESMTPS id 1AO81uQ9057409 (version=TLSv1.3 cipher=AEAD-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 24 Nov 2021 19:01:56 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.16.1/8.16.1/Submit) id 1AO81upY057406; Wed, 24 Nov 2021 19:01:56 +1100 (AEDT) (envelope-from peter) Date: Wed, 24 Nov 2021 19:01:56 +1100 From: Peter Jeremy To: Konstantin Belousov Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 8ef0c11e7ce7 - main - nfsclient: upgrade vnode lock in VOP_OPEN()/VOP_CLOSE() if we need to flush buffers Message-ID: References: <202111161714.1AGHEtBA084291@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D+Ny//2FsuqrXAB8" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp X-Rspamd-Queue-Id: 4HzYPv2B7nz3pYP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --D+Ny//2FsuqrXAB8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-Nov-24 05:12:19 +0200, Konstantin Belousov wr= ote: >Try this (combined two patches). That's helped. I can now swapon and swapoff but not actually use swap: KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x30 assert_vop_locked() at assert_vop_locked+0x58 VOP_STRATEGY_APV() at VOP_STRATEGY_APV+0x54 bufstrategy() at bufstrategy+0x4c swap_pager_putpages() at swap_pager_putpages+0x108 vm_pageout_flush() at vm_pageout_flush+0x108 vm_pageout_cluster() at vm_pageout_cluster+0x464 vm_pageout_laundry_worker() at vm_pageout_laundry_worker+0x910 fork_exit() at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x14 vnode 0xffffa00008840700: type VREG usecount 1, writecount 0, refcount 2 seqc users 0 hold count flags () flags (VV_VMSIZEVNLOCK) v_object 0xffffa00008df3738 ref 0 pages 0 cleanbuf 0 dirtybuf 0 lock type nfs: UNLOCKED fileid 30984 fsid 0x3a3a00ff01 VOP_STRATEGY: 0xffffa00008840700 is not locked but should be KDB: enter: lock violation --=20 Peter Jeremy --D+Ny//2FsuqrXAB8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmGd8W9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzQaJBAAktZdZn9l7mfB0UVmAkO3nHbhqa5ArGFfCSnnEZelk0I+U/lge7YPRJ3l 9e51QBIjW7ZXul7kYROWLtCcBvD5t7D1FxOuW3ht5soXYAK4MT0ekzipoYRh8oPl 4O9jijENC4KOvwrpB8OQtAH3D5gC/NRDUxqaEV1fjWvw1ZrLrUbSGMkEWCYwNehd oR0bJm5Hk2QxmgJiOHbVuXeOFqiPDydAGHaxRu9c6upUdVnyMq4KMKG688qWu5To 1EltUayybOuwjoVqx0H6QuePCNlt/Uq/yxrE2Zfof2SF3Q3Gb+2JSt1JjQ4iumfg 7mIVlocJoXGW4bx97jSbq0W0412XbLBhnaQ+2+/sGfJEiKYoz/fvGsa/xFX8I307 gIAzNs/wN5JE1OlckCUe1w2tjNzKtEfsezox1Egt4e861+p3Pt352LO/nwNjzZa2 VUHnYYinMlQRVNNzuwSExIA+Z3LJqv8SUpGE28mjuX189dJ7gbEL4+I36mav6h2O +LrA/PXSkZ0CQkBZCwg3Mh8tNUVTFTcd17cttj1BmQTAPw8/GH3wyvaKMyP6Cyh+ mGSTuDej9gWCAjzoVlOHizYTK30e4L61COAZqqy2CgzWIRhbJ1ikLYGUpeC0TKi3 OA/7hqIe7WnfTLndPUk/a859ojUhq690sbicY7yGVpBlvHLJscs= =xrob -----END PGP SIGNATURE----- --D+Ny//2FsuqrXAB8--