diff options
author | Souptick Joarder <[email protected]> | 2020-09-06 12:21:53 +0530 |
---|---|---|
committer | Boris Ostrovsky <[email protected]> | 2020-10-04 18:39:18 -0500 |
commit | 779055842da5b2e508f3ccf9a8153cb1f704f566 (patch) | |
tree | ed5d0d89d9207c4ae3e9a61d1753216bcd6895ef /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 549738f15da0e5a00275977623be199fbbf7df50 (diff) |
xen/gntdev.c: Mark pages as dirty
There seems to be a bug in the original code when gntdev_get_page()
is called with writeable=true then the page needs to be marked dirty
before being put.
To address this, a bool writeable is added in gnt_dev_copy_batch, set
it in gntdev_grant_copy_seg() (and drop `writeable` argument to
gntdev_get_page()) and then, based on batch->writeable, use
set_page_dirty_lock().
Fixes: a4cdb556cae0 (xen/gntdev: add ioctl for grant copy)
Suggested-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Souptick Joarder <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions