diff options
author | Andrii Nakryiko <[email protected]> | 2024-08-29 10:42:28 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-09-11 09:58:31 -0700 |
commit | ad41251c290dfe3c01472c94d2439a59de23fe97 (patch) | |
tree | 1a2c69a27aa431e09596ca551b185747956f6faa /scripts/gdb/linux/tasks.py | |
parent | 45b8fc3096542a53bfd245a9ad8ef870384b4897 (diff) |
lib/buildid: implement sleepable build_id_parse() API
Extend freader with a flag specifying whether it's OK to cause page
fault to fetch file data that is not already physically present in
memory. With this, it's now easy to wait for data if the caller is
running in sleepable (faultable) context.
We utilize read_cache_folio() to bring the desired folio into page
cache, after which the rest of the logic works just the same at folio level.
Suggested-by: Omar Sandoval <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Johannes Weiner <[email protected]>
Reviewed-by: Eduard Zingerman <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions