This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/include/linux
Oleg Nesterov 24b7ead3fb freezer: fix wait_event_freezable/__thaw_task races
wait_event_freezable() and friends stop the waiting if try_to_freeze()
fails. This is not right, we can race with __thaw_task() and in this
case

	- wait_event_freezable() returns the wrong ERESTARTSYS

	- wait_event_freezable_timeout() can return the positive
	  value while condition == F

Change the code to always check __retval/condition before return.

Note: with or without this patch the timeout logic looks strange,
probably we should recalc timeout if try_to_freeze() returns T.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
2011-11-23 09:28:17 -08:00
..
2011-11-07 09:11:16 -08:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:25 -04:00
2011-11-16 09:21:50 +01:00
2011-09-27 09:25:02 +01:00
2011-10-31 17:30:44 -07:00
2011-11-02 12:53:43 +01:00
2011-11-07 23:54:53 +01:00
2011-10-31 20:19:04 +00:00
2011-11-16 22:00:34 -05:00
2011-10-30 04:43:30 -04:00
2011-09-27 18:08:04 +02:00
2011-11-02 16:06:57 -07:00
2011-11-02 16:06:58 -07:00
2011-10-31 11:51:28 -04:00
2011-10-31 14:03:22 +01:00
2011-11-02 16:07:02 -07:00
2011-10-31 17:30:47 -07:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-03 14:01:21 -04:00
2011-11-02 16:07:02 -07:00