[PATCH 05/21] Clear work->bits when initializing work
Valerie Aurora
val at versity.com
Tue Feb 11 13:19:02 PST 2025
We clear all the other fields, clear this one too or else we fail to
wake up the work queue thread because we think we already queued this
work.
Signed-off-by: Valerie Aurora <val at versity.com>
---
shared/lk/workqueue.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/shared/lk/workqueue.h b/shared/lk/workqueue.h
index 2b91798..60e20ef 100644
--- a/shared/lk/workqueue.h
+++ b/shared/lk/workqueue.h
@@ -25,6 +25,7 @@ static inline void INIT_WORK(struct work_struct *work, work_func_t func)
{
cds_wfcq_node_init(&work->node);
work->func = func;
+ work->bits = 0;
}
bool queue_work(struct workqueue_struct *wq, struct work_struct *work);
--
2.48.1
More information about the ngnfs-devel
mailing list