Hello David,
Here is the old discussion carried out on this.
http://linux-kernel.2935.n7.nabble.com/Is-spin-is-locked-safe-to-use-with-BUG-ON-WARN-ON-td654800.html#a921802
RegardsHere is the old discussion carried out on this.
http://linux-kernel.2935.n7.nabble.com/Is-spin-is-locked-safe-to-use-with-BUG-ON-WARN-ON-td654800.html#a921802
Sanjeev Sharma
On Mon, Aug 11, 2014 at 5:31 PM, sanjeev sharma <sanjeevsharmaengg@xxxxxxxxx> wrote:
Hello David,Do you see any problem in replacing with assert_spin_locked() and here is old discusion around the
On Mon, Aug 11, 2014 at 5:15 PM, David Rientjes <rientjes@xxxxxxxxxx> wrote:
On Sun, 10 Aug 2014, Guenter Roeck wrote:It may be helpful to assess whether any of these sites should be converted
> 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.
>
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel