Rename: wait_queue_t => wait_queue_entry_t 'wait_queue_t' was always a slight misnomer: its name implies that it's a "queue", but in reality it's a queue *entry*. The 'real' queue is the wait queue head, which had to carry the name. Start sorting this out by renaming it to 'wait_queue_entry_t'. This also allows the real structure name 'struct __wait_queue' to lose its double underscore and become 'struct wait_queue_entry', which is the more canonical nomenclature for such data types.
Showing the changes to kernel/workqueue.c (1 of 94 files). Show all
Unified · Split
| @@ -2864,11 +2864,11 @@ bool flush_work(struct work_struct *work) · 2863 unmodified lines | ||
| 2864 | 2864 | EXPORT_SYMBOL_GPL(flush_work); |
| 2865 | 2865 | |
| 2866 | 2866 | struct cwt_wait { |
| 2867 | − wait_queue_t wait; | |
| 2867 | + wait_queue_entry_t wait; | |
| 2868 | 2868 | struct work_struct *work; |
| 2869 | 2869 | }; |
| 2870 | 2870 | |
| 2871 | −static int cwt_wakefn(wait_queue_t *wait, unsigned mode, int sync, void *key) | |
| 2871 | +static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) | |
| 2872 | 2872 | { |
| 2873 | 2873 | struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait); |
| 2874 | 2874 | |