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
28642864 EXPORT_SYMBOL_GPL(flush_work);
28652865
28662866 struct cwt_wait {
2867− wait_queue_t wait;
2867+ wait_queue_entry_t wait;
28682868 struct work_struct *work;
28692869 };
28702870
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)
28722872 {
28732873 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait);
28742874