Fix "delayed_work_pending()" macro expansion
Changes
1 files changed · +2 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/linux/workqueue.h | modified | +2 | −2 | View file |
include/linux/workqueue.h
View filediff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index edef8d5..5b13dcf 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -121,8 +121,8 @@ struct execute_work {
* pending
* @work: The work item in question
*/
-#define delayed_work_pending(work) \
- test_bit(WORK_STRUCT_PENDING, &(work)->work.management)
+#define delayed_work_pending(w) \
+ work_pending(&(w)->work)
/**
* work_release - Release a work item under execution