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-08-14 14:58:01 +02:00
2008-05-01 08:03:59 -07:00
2008-10-16 11:21:30 -07:00
2008-07-26 20:53:20 -04:00
2008-10-13 09:51:40 -07:00
2008-03-30 14:18:41 -07:00
2008-07-28 14:37:38 +02:00
2007-07-16 09:05:50 -07:00
2008-07-26 12:00:09 -07:00
2008-08-13 12:55:10 +02:00
2008-09-02 19:21:40 -07:00
2008-08-25 17:39:57 +02:00
2007-07-16 09:05:50 -07:00
2008-08-19 20:37:07 -07:00
2008-02-06 10:41:02 -08:00
2008-09-29 17:56:57 -04:00
2008-10-13 09:51:40 -07:00
2008-07-25 10:53:45 -07:00
2008-10-16 11:21:31 -07:00