Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 16:04:15 +0100
From:      Attilio Rao <attilio@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Davide Italiano <davide@freebsd.org>, src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   Re: svn commit: r238907 - projects/calloutng/sys/kern
Message-ID:  <CAJ-FndCFjZP=0ThpMxy6WSDQAZOm0TRkyu0bWfxVBwtT-h%2B1cA@mail.gmail.com>
In-Reply-To: <5016A21B.6090409@FreeBSD.org>
References:  <201207301350.q6UDobCI099069@svn.freebsd.org> <CAJ-FndBJNNBNDUEDsDBUvwoVExZpnXmoJmpY58gE3QQbw3hRGA@mail.gmail.com> <CACYV=-HmOwZ=E8Pw3-mUw0994SbvZaA3eMfcwM0fDTu_zykBJg@mail.gmail.com> <CAJ-FndBmXkyJJ=fCkEpVm84E56A2_EoM6kbch03e4RMEM6WCGQ@mail.gmail.com> <20120730143943.GY2676@deviant.kiev.zoral.com.ua> <CAJ-FndByYcZ%2BUhnkFT_n2=W=UheqUCi0%2BUAX%2BF07EqbVU=6iDQ@mail.gmail.com> <CAJ-FndCQ6HGAfFdjofNfJ%2BHeNaE7uqoNhJB9GH4pGFxyZ_1yLg@mail.gmail.com> <5016A21B.6090409@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/30/12, Andriy Gapon <avg@freebsd.org> wrote:
> on 30/07/2012 17:56 Attilio Rao said the following:
>> More explicitly, I think such combination TDP_NOSLEEPING +
>> TDP_NOBLOCKING (name invented) should be set on entering the interrupt
>> context, not only related to this part of callouts. This would be a
>> very good help for catching buggy situations.
>
> Something very tangential.  I think it would also be nice to check if a
> thread has
> any(?) locks held when returning to userland.

This happens already for INVARIANTS case, with td_locks counters.
In the !INVARIANTS case, this doesn't happen because you don't want to
add the burden to bump td_locks for the fast case and I think it is a
good approach.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-FndCFjZP=0ThpMxy6WSDQAZOm0TRkyu0bWfxVBwtT-h%2B1cA>