Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH] target: Use WARNON_NON_RT(!irqs_disabled())

$
0
0
Linus Torvalds writes: (Summary) [ Adding PeterZ to participants due to query about lockdep_assert() ] [ Adding PeterZ to participants due to query about lockdep_assert() ] On Wed, Mar 21, 2018 at 8:38 AM, Arnaldo Carvalho de Melo <acme@kernel.org> Does "lockdep_assert_held()" already verify the irq contextr, or do we need lockdep_assert_irqs_disabled() too?
need lockdep_assert_irqs_disabled() too?
Honestly, the old-fashioned way of doing verification of state by hand is understandable, but it's legacy and kind of pointless when we have much better tools these days.
much better tools these days.
I'm perfectly willing to leave old assertions in place, but if they need fixing anyway, I'd damn well want to fix them *right* instead of starting to just add more piles of hacks on top of the old model.

Viewing all articles
Browse latest Browse all 1267

Trending Articles