firmware_class: Fix problems with usermodehelper test
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 of 8 patches 0 repliesNew
- v16 patches 13 repliesSuperseded
7 of 8 patches are in this archive. The cover letter announces 8.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | firmware_class: Rework usermodehelper checkdrivers/ include/ kernel/ | +18 | 0 replies | |
| 2/8 | firmware_class: Split _request_firmware() into three functions, v2drivers/ | +41 | 0 replies | |
| 4/8 | PM / Hibernate: Disable usermode helpers right before freezing taskskernel/ | +10 | 0 replies | |
| 5/8 | PM / Sleep: Move disabling of usermode helpers to the freezerkernel/ kernel/ kernel/ +1 more | +8 | 0 replies | |
| 6/8 | PM / Sleep: Mitigate race between the freezer and request_firmware()include/ kernel/ kernel/ | +58 | 0 replies | |
| 7/8 | firmware_class: Reorganize fw_create_instance()drivers/ | +62 | 0 replies | |
| 8/8 | firmware_class: Move request_firmware_nowait() to workqueuesdrivers/ | +7 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Greg Kroah-Hartman | Stephen Boyd |
|---|---|---|
| Series | A-b | |
| 1/8 | A-b | |
| 2/8 | A-b | R-b |
| 4/8 | A-b | |
| 5/8 | A-b | |
| 6/8 | A-b | |
| 7/8 | A-b | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/8] firmware_class: Fix problems with usermodehelper test
Hi all,
Quoted 12 lines · Rafael J. Wysocki
The following series of patches fixes two problems with
request_firmware()andrequest_firmware_nowait()resulting from commita144c6a6c924aa1da04dd77fb84b89927354fdffPM: Print a warning if firmware is requested when tasks are frozen
The first problem is that
request_firmware_nowait()may fail if it happens to run in parallel with system suspend. It should't fail in such situations and that is addressed by the first three patches (that code has been discussed with Linus at al already).
Quoted 4 lines
The second issue is that
request_firmware()may be called in a thread which isn't related to system suspend and if suspend happens exactly at that time,request_firmware()will fail (and print a scary warning), although it shouldn't. This problem is addressed by the remaining three patches, which are new.
The following series is a respin of this one including fixes of minor bugs found by the reviewers in the previous version and two additional patches from Stephen cleaning up things a bit more.
Since patches [1-6/8] fix regressions, I'd like the series to go into v3.4 if that's not too late.
[1/8] - Rework the usermodehelper check in _request_firmware().
[2/8] - Split _request_firmware() into three functions.
[3/8] - If firmware is to be loaded asynchronously, wait for usermodehelper_disabled
to be unset instead of failing the operation.
[4/8] - Unify the hibernation/suspend code's usage of usermodehelper_disable(). [5/8] - Move usermodehelper_disable() into freeze_processes().
[6/8] - Make freezable threads calling request_firware() avoid the race with the
freezer.
[7/8] - Split up fw_create_instance() to avoid casting out of const in it. [8/8] - Use workqueues instead of kthreads in request_firmware_nowait().
Thanks,
Rafael