diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-06-01 15:56:45 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-29 10:44:09 +0200 |
| commit | 2a868a445b25f365acbd641ab3b5c558e9039f26 (patch) | |
| tree | 446522cbdf7e70e781e7c9f0601422bf4d0e21ad /tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git | |
| parent | fea1107ff33cd3412652307b9ff911055b197364 (diff) | |
fs: use scoped_with_init_fs() for kernel_read_file_from_path_initns()
Replace the manual init_task root retrieval with scoped_with_init_fs()
to temporarily override current->fs. This allows using the simpler
filp_open() instead of the init_root() + file_open_root() pattern.
kernel_read_file_from_path_initns() ← fw_get_filesystem_firmware() ←
_request_firmware() ← request_firmware_work_func() ← kworker (async
firmware loading)
Also called synchronously from request_firmware() which can be user or
kthread context.
Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-12-77ee053060e0@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
