From: Paul E. McKenney Date: Thu, 13 May 2010 19:32:28 +0000 (-0700) Subject: lockdep: Add an in_workqueue_context() lockdep-based test function X-Git-Tag: v2.6.36-rc1~533^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a25909a4d4a29e272f953e12595bf2f04a292dbd;p=pandora-kernel.git lockdep: Add an in_workqueue_context() lockdep-based test function Some recent uses of RCU make use of workqueues. In these uses, execution within the context of a specific workqueue takes the place of the usual RCU read-side primitives such as rcu_read_lock(), and flushing of workqueues takes the place of the usual RCU grace-period primitives. Checking for correct use of rcu_dereference() in such cases requires a test of whether the code is executing in the context of a particular workqueue. This commit adds an in_workqueue_context() function that provides this test. This new function is only defined when lockdep is enabled, which allows it to be used as the second argument of rcu_dereference_check(). Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed