diff options
| author | David Howells <[email protected]> | 2023-05-22 21:57:43 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-24 08:42:44 -0600 |
| commit | a7e689dd1c06e0cbd6d216a6868e33099d8fc8d8 (patch) | |
| tree | 582ba605c80892a13c90d6ef1d372f71685b9b21 /tools/perf/scripts/python | |
| parent | fd363244e883323e1ac9412d96fd22b51e255b0c (diff) | |
block: Convert bio_iov_iter_get_pages to use iov_iter_extract_pages
This will pin pages or leave them unaltered rather than getting a ref on
them as appropriate to the iterator.
The pages need to be pinned for DIO rather than having refs taken on them to
prevent VM copy-on-write from malfunctioning during a concurrent fork() (the
result of the I/O could otherwise end up being affected by/visible to the
child process).
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
cc: Al Viro <[email protected]>
cc: Jens Axboe <[email protected]>
cc: Jan Kara <[email protected]>
cc: Matthew Wilcox <[email protected]>
cc: Logan Gunthorpe <[email protected]>
cc: [email protected]
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions