aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2020-04-30 16:48:29 -0400
committerMike Snitzer <snitzer@redhat.com>2020-05-15 10:29:36 -0400
commit087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b (patch)
treea3ecdcc75df1e1a714466302ebb9f4f29d58bfd9 /include/linux/device-mapper.h
parentdm writecache: improve performance on DDR persistent memory (Optane) (diff)
downloadwireguard-linux-087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b.tar.xz
wireguard-linux-087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b.zip
dm mpath: pass IO start time to path selector
The HST path selector needs this information to perform path prediction. For request-based mpath, struct request's io_start_time_ns is used, while for bio-based, use the start_time stored in dm_io. Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index af48d9da3916..934037d938b9 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -332,6 +332,8 @@ void *dm_per_bio_data(struct bio *bio, size_t data_size);
struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size);
unsigned dm_bio_get_target_bio_nr(const struct bio *bio);
+u64 dm_start_time_ns_from_clone(struct bio *bio);
+
int dm_register_target(struct target_type *t);
void dm_unregister_target(struct target_type *t);