Tejun Heo
a25d644fc0
wait: kill is_sync_wait()
...
is_sync_wait() is used to distinguish between sync and async waits.
Basically sync waits are the ones initialized with init_waitqueue_entry()
and async ones with init_waitqueue_func_entry(). The sync/async
distinction is used only in prepare_to_wait[_exclusive]() and its only
function is to skip setting the current task state if the wait is async.
This has a few problems.
* No one uses it. None of func_entry users use prepare_to_wait()
functions, so the code path never gets executed.
* The distinction is bogus. Maybe back when func_entry is used only
by aio but it's now also used by epoll and in future possibly by 9p
and poll/select.
* Taking @state as argument and ignoring it silenly depending on how
@wait is initialized is just a bad error-prone API.
* It prevents func_entry waits from using wait->private for no good
reason.
This patch kills is_sync_wait() and the associated code paths from
prepare_to_wait[_exclusive](). As there was no user of these code paths,
this patch doesn't cause any behavior difference.
Signed-off-by: Tejun Heo <tj@kernel.org >
Acked-by: Ingo Molnar <mingo@elte.hu >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-10-16 11:21:31 -07:00
..
2008-10-13 12:28:49 -02:00
2008-10-04 17:12:27 -04:00
2008-10-13 21:51:57 +01:00
2008-09-15 14:25:23 -07:00
2008-10-12 11:04:34 +02:00
2008-10-09 08:56:01 +02:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:00 +02:00
2008-09-29 17:56:56 -04:00
2008-10-13 21:51:51 +01:00
2008-09-25 09:38:14 +01:00
2008-10-08 18:22:18 -04:00
2008-09-12 16:30:20 -07:00
Merge branches 'x86/xen', 'x86/build', 'x86/microcode', 'x86/mm-debug-v2', 'x86/memory-corruption-check', 'x86/early-printk', 'x86/xsave', 'x86/ptrace-v2', 'x86/quirks', 'x86/setup', 'x86/spinlocks' and 'x86/signal' into x86/core-v2
2008-10-12 15:50:02 +02:00
2008-10-10 22:39:31 +02:00
2008-10-09 09:01:10 +02:00
2008-10-09 08:56:22 +02:00
2008-10-09 08:56:20 +02:00
2008-10-16 11:21:28 -07:00
2008-09-24 16:38:17 -07:00
2008-10-14 12:12:02 -07:00
2008-10-09 13:52:43 -04:00
2008-10-10 13:37:12 +01:00
2008-10-09 08:56:04 +02:00
2008-10-13 09:51:43 -07:00
2008-09-19 10:20:41 +02:00
2008-10-13 16:05:06 +01:00
2008-10-15 12:46:51 +01:00
2008-10-09 08:56:13 +02:00
2008-10-12 12:05:55 +02:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:30 -07:00
2008-10-09 08:56:19 +02:00
2008-10-08 19:44:18 -04:00
2008-10-14 12:31:14 -07:00
2008-10-09 08:56:08 +02:00
2008-09-22 07:29:31 +01:00
2008-10-14 23:51:02 +02:00
2008-10-14 23:51:02 +02:00
2008-09-29 17:09:14 +02:00
2008-10-12 09:36:50 -02:00
2008-10-13 21:39:50 +02:00
2008-09-24 16:18:02 -04:00
2008-10-13 19:01:08 -07:00
2008-10-13 19:01:08 -07:00
2008-10-13 19:01:08 -07:00
2008-09-22 21:28:11 -07:00
2008-10-01 01:30:19 -07:00
2008-10-09 11:59:55 -07:00
2008-09-22 21:28:11 -07:00
2008-10-13 19:01:08 -07:00
2008-10-01 07:30:02 -07:00
2008-10-07 15:34:37 -07:00
2008-10-16 11:21:30 -07:00
2008-10-06 16:51:30 +02:00
2008-10-11 20:23:20 +02:00
2008-09-22 01:15:02 -07:00
2008-10-12 09:37:01 -02:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:31 -07:00
2008-10-11 09:33:18 -07:00
2008-10-12 15:09:23 +02:00
2008-10-12 11:44:37 -07:00
2008-10-09 08:56:04 +02:00
2008-10-16 11:21:29 -07:00
2008-09-23 22:01:33 +01:00
2008-09-29 00:28:36 -04:00
2008-10-13 09:47:43 +11:00
2008-10-09 08:56:06 +02:00
2008-09-13 14:41:52 -07:00
Merge branches 'x86/xen', 'x86/build', 'x86/microcode', 'x86/mm-debug-v2', 'x86/memory-corruption-check', 'x86/early-printk', 'x86/xsave', 'x86/ptrace-v2', 'x86/quirks', 'x86/setup', 'x86/spinlocks' and 'x86/signal' into x86/core-v2
2008-10-12 15:50:02 +02:00
2008-09-13 14:41:52 -07:00
2008-10-14 23:50:47 +02:00
2008-10-16 11:21:30 -07:00
2008-10-13 19:01:08 -07:00
2008-10-08 11:35:01 +02:00
2008-10-01 07:03:24 -07:00
2008-09-15 16:48:19 -04:00
2008-10-13 10:55:47 +11:00
2008-10-13 10:10:37 -07:00
2008-10-13 17:13:56 +01:00
2008-09-16 15:52:08 -07:00
2008-10-09 12:50:59 -04:00
2008-10-05 13:33:42 -07:00
2008-10-05 11:16:16 -07:00
2008-10-08 16:38:41 -07:00
2008-09-12 16:29:34 -07:00
2008-10-16 11:21:30 -07:00
2008-09-16 19:35:05 -07:00
2008-10-07 14:26:19 +11:00
2008-10-02 15:53:13 -07:00
2008-10-03 10:36:08 +02:00
2008-09-30 12:08:41 +02:00
2008-10-16 11:21:30 -07:00
2008-10-16 11:21:30 -07:00
2008-09-22 19:51:15 -07:00
2008-10-12 12:37:32 +02:00
2008-10-13 09:51:39 -07:00
2008-10-13 09:51:40 -07:00
2008-10-07 14:22:33 -07:00
2008-09-23 08:09:13 -07:00
2008-10-05 11:16:16 -07:00
2008-10-03 18:22:18 -07:00
2008-10-03 11:46:14 -05:00
2008-10-16 11:21:28 -07:00
2008-10-07 14:43:06 -07:00
2008-10-13 09:51:40 -07:00
2008-10-09 13:52:44 -04:00
2008-10-13 09:51:43 -07:00
2008-10-13 09:51:44 -07:00
2008-10-12 09:36:49 -02:00
2008-10-13 09:51:42 -07:00
2008-10-16 11:21:31 -07:00
2008-10-02 22:48:34 +01:00
2008-10-05 13:33:42 -07:00