[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1408110439580.15519@chino.kir.corp.google.com>
Date: Mon, 11 Aug 2014 04:45:12 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Guenter Roeck <linux@...ck-us.net>
cc: David Airlie <airlied@...ux.ie>, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm: Do not use BUG_ON(!spin_is_locked())
On Sun, 10 Aug 2014, Guenter Roeck wrote:
> spin_is_locked() always returns false in uniprocessor configurations
> and can therefore not be used with BUG_ON. Replace it with
> assert_spin_locked(), which exists for that very purpose.
>
It may be helpful to assess whether any of these sites should be converted
to lockdep_assert_held() so they have no cost when lockdep isn't enabled
but still reveal problems when debugging.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists