lockdep: Annotate irq_work
[linux-2.6-block.git] / kernel / irq_work.c
index 828cc30774bc4d76f498503b083dad428dbf0baa..48b5d1b6af4d31225ed5fb49d8d81a97b8ed2ff3 100644 (file)
@@ -153,7 +153,9 @@ static void irq_work_run_list(struct llist_head *list)
                 */
                flags = atomic_fetch_andnot(IRQ_WORK_PENDING, &work->flags);
 
+               lockdep_irq_work_enter(work);
                work->func(work);
+               lockdep_irq_work_exit(work);
                /*
                 * Clear the BUSY bit and return to the free state if
                 * no-one else claimed it meanwhile.