History

sched/wait: Rename wait_queue_t => wait_queue_entry_t

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.

Ingo Molnar committed 9 years ago

Commit ac6424b1 parent 970559694 files · +216 −213Browse files

Showing the changes to kernel/workqueue.c (1 of 94 files). Show all

Unified · Split

kernel/workqueue.c+2−2
@@ -2864,11 +2864,11 @@ bool flush_work(struct work_struct *work) · 2863 unmodified lines
2864EXPORT_SYMBOL_GPL(flush_work);2864EXPORT_SYMBOL_GPL(flush_work);
2865 2865
2866struct cwt_wait {2866struct cwt_wait {
2867 wait_queue_t wait;2867 wait_queue_entry_t wait;
2868 struct work_struct *work;2868 struct work_struct *work;
2869};2869};
2870 2870
2871static int cwt_wakefn(wait_queue_t *wait, unsigned mode, int sync, void *key)2871static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
2872{2872{
2873 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait);2873 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait);
2874 2874