summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-queue-length.c
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2020-04-30 22:48:29 +0200
committerMike Snitzer <snitzer@redhat.com>2020-05-15 16:29:36 +0200
commit087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b (patch)
treea3ecdcc75df1e1a714466302ebb9f4f29d58bfd9 /drivers/md/dm-queue-length.c
parentdm writecache: improve performance on DDR persistent memory (Optane) (diff)
downloadlinux-087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b.tar.xz
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 'drivers/md/dm-queue-length.c')
-rw-r--r--drivers/md/dm-queue-length.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-queue-length.c b/drivers/md/dm-queue-length.c
index 969c4f1a3633..5fd018d18418 100644
--- a/drivers/md/dm-queue-length.c
+++ b/drivers/md/dm-queue-length.c
@@ -227,7 +227,7 @@ static int ql_start_io(struct path_selector *ps, struct dm_path *path,
}
static int ql_end_io(struct path_selector *ps, struct dm_path *path,
- size_t nr_bytes)
+ size_t nr_bytes, u64 start_time)
{
struct path_info *pi = path->pscontext;