summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorOleg Nesterov2011-11-23 18:28:17 +0100
committerTejun Heo2011-11-23 18:28:17 +0100
commit24b7ead3fb0bae267c2ee50898eb4c13aedd1e9f (patch)
tree899a48d29daebb6e2eb9398797304985e5961fc8 /arch/microblaze
parentfreezer: kill unused set_freezable_with_signal() (diff)
downloadkernel-qcow2-linux-24b7ead3fb0bae267c2ee50898eb4c13aedd1e9f.tar.gz
kernel-qcow2-linux-24b7ead3fb0bae267c2ee50898eb4c13aedd1e9f.tar.xz
kernel-qcow2-linux-24b7ead3fb0bae267c2ee50898eb4c13aedd1e9f.zip
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>
Diffstat (limited to 'arch/microblaze')
0 files changed, 0 insertions, 0 deletions