Re: [PATCH RFC tip/core/rcu 23/23] vhost: add __rcu annotations
From: Paul E. McKenney
Date: Thu May 13 2010 - 11:23:57 EST
On Thu, May 13, 2010 at 03:07:23PM +0200, Peter Zijlstra wrote:
> On Wed, 2010-05-12 at 16:00 -0700, Paul E. McKenney wrote:
> > Any thoughts? One approach would be to create a separate lockdep class
> > for vhost workqueue state, similar to the approach used in instrument
> > rcu_read_lock() and friends.
>
> workqueue_struct::lockdep_map, its held while executing worklets.
>
> lock_is_held(&vhost_workqueue->lockdep_map), should do as you want.
Thank you, Peter!!!
Thanx, Paul
--
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/