diff options
author | 2024-07-02 12:00:43 +0200 | |
---|---|---|
committer | 2024-07-02 12:00:43 +0200 | |
commit | babe69e86d0fcb11a4a8f629edf2951d94ef67ae (patch) | |
tree | 9bce0224cbd5c3dba840336fb2da2474562a71af /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm io: don't call the async_io notify.fn on invalid num_regions (diff) | |
download | wireguard-linux-babe69e86d0fcb11a4a8f629edf2951d94ef67ae.tar.xz wireguard-linux-babe69e86d0fcb11a4a8f629edf2951d94ef67ae.zip |
dm io: remove code duplication between sync_io and aysnc_io
The only difference between the code to setup and dispatch the io in
sync_io() and async_io() is the sync argument to dispatch_io(), which
is used to update the opf argument.
Update the opf argument direcly in sync_io(), and remove the sync
argument from dispatch_io(). Then, make sync_io() call async_io()
instead of duplicting all of its code.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions