Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 19:01:56 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
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:  <YZ3xdAxfEAiV/R6M@server.rulingia.com>
In-Reply-To: <YZ2tk3CZubvsXKSr@kib.kiev.ua>
References:  <202111161714.1AGHEtBA084291@gitrepo.freebsd.org> <YZyhpJ9TrbTpjths@server.rulingia.com> <YZyyGdErowNF1pWv@kib.kiev.ua> <YZ2hJkPwiAKvhWQ7@server.rulingia.com> <YZ2tk3CZubvsXKSr@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kostikbel@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YZ3xdAxfEAiV/R6M>