Date: Sat, 31 Mar 2018 23:24:28 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331853 - head/sys/sys Message-ID: <201803312324.w2VNOSoK092466@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sat Mar 31 23:24:28 2018 New Revision: 331853 URL: https://svnweb.freebsd.org/changeset/base/331853 Log: Don't verify td_locks accounting after a panic. Reported by: pho X-MFC with: r331738 Modified: head/sys/sys/proc.h Modified: head/sys/sys/proc.h ============================================================================== --- head/sys/sys/proc.h Sat Mar 31 22:02:59 2018 (r331852) +++ head/sys/sys/proc.h Sat Mar 31 23:24:28 2018 (r331853) @@ -382,7 +382,8 @@ do { \ #define TD_LOCKS_INC(td) ((td)->td_locks++) #define TD_LOCKS_DEC(td) do { \ - KASSERT((td)->td_locks > 0, ("thread %p owns no locks", (td))); \ + KASSERT(SCHEDULER_STOPPED_TD(td) || (td)->td_locks > 0, \ + ("thread %p owns no locks", (td))); \ (td)->td_locks--; \ } while (0) #else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803312324.w2VNOSoK092466>