Date: Wed, 29 May 2019 12:04:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238212] [Witness] Errors are reported when taking a recursive lock Message-ID: <bug-238212-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238212 Bug ID: 238212 Summary: [Witness] Errors are reported when taking a recursive lock Product: Base System Version: 11.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nicolas.masse@stormshield.eu Created attachment 204696 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204696&action= =3Dedit Add a check in witness to allow taking a lock recursively When using a recursive lock, witness trigger an errors if the lock is taken twice although it is an expected case. This was observed when using a rm_lock created with the RM_RECURSE flag. So I add a check in witness to check is the class of the lock have the LC_RECURSABLE flag set before triggering the error. Note that this is a quick fix which could probably be enhanced. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238212-227>