freezer: fix wait_event_freezable/__thaw_task races
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | freezer: fix wait_event_freezable/__thaw_task racesinclude/ | +10 | 0 replies | |
| 1/1 | freezer: fix wait_event_freezable/__thaw_task racesinclude/ | +10 | 9 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] freezer: fix wait_event_freezable/__thaw_task races
Hi,
Quoted 10 lines · Tejun Heo
Quoted 7 lines
I meant, unless the caller plays with
allow_signal(), it has all rights to doif (wait_event_freezable(...)) BUG();This becomes correct with the code above.
Yeap, sure, w/
freezable_with_signalgone, the above should work fine. Care to create a patch?
Sure.
But. Tejun, Rafael, I have to rely on your review. I have no idea how can I test this change. Hopfully it is simple enough, though.
And. wait_event_freezable_timeout() obviously has another problem, although I hope this is fine. The caller can spend a lot of time in refrigerator, shouldn't we update "timeout" in this case? I hope we shouldn't.
Oleg.