Re: WARNING: suspicious RCU usage in modeset_lock

From: Tetsuo Handa
Date: Fri Dec 18 2020 - 20:00:53 EST


On Wed, Dec 16, 2020 at 5:16 PM Paul E. McKenney <paulmck@xxxxxxxxxx> wrote:
> In my experience, lockdep will indeed complain if an interrupt handler
> returns while in an RCU read-side critical section.

Can't we add lock status checks into the beginning and the end of interrupt handler functions
(e.g. whether "struct task_struct"->lockdep_depth did not change) ?