UPSTREAM next (v3.11): epoll: use freezable blocking call
authorColin Cross <ccross@android.com>
Mon, 6 May 2013 23:50:16 +0000 (23:50 +0000)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 31 Aug 2013 02:10:58 +0000 (19:10 -0700)
commite27483cf6cb59c6e8ebf4d20c301418b30b9b5fa
tree2b968b8c5d151a8f08c586a3093ef5e646ee0220
parentaeb3420fd36e67927679ebd177039ec372a62b3a
UPSTREAM next (v3.11): epoll: use freezable blocking call

Avoid waking up every thread sleeping in an epoll_wait call during
suspend and resume by calling a freezable blocking call.  Previous
patches modified the freezer to avoid sending wakeups to threads
that are blocked in freezable blocking calls.

This call was selected to be converted to a freezable call because
it doesn't hold any locks or release any resources when interrupted
that might be needed by another freezing task or a kernel driver
during suspend, and is a common site where idle userspace tasks are
blocked.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 1c441e921201d523b5a6036aea22b0b426bf1af2)
Change-Id: Iefff8c9f0456b357116425b418ce32d0ca0bb318
Reviewed-on: http://git-master/r/228696
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
fs/eventpoll.c