diff options
author | Joe Thornber <ejt@redhat.com> | 2014-10-06 10:28:30 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-11-10 15:25:27 -0500 |
commit | 8a01a6af75f839ff8eb25dab69b49224e855bfa1 (patch) | |
tree | 6e0c31ce682332cd8af5d6f77037b56421507542 /drivers/md/dm-thin-metadata.c | |
parent | 4646015d7e4ca5a4dc19427fb0a0aeff15a4fd91 (diff) |
dm thin: prefetch missing metadata pages
Prefetch metadata at the start of the worker thread and then again every
128th bio processed from the deferred list.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin-metadata.c')
-rw-r--r-- | drivers/md/dm-thin-metadata.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c index ee42d1c52387..43adbb863f5a 100644 --- a/drivers/md/dm-thin-metadata.c +++ b/drivers/md/dm-thin-metadata.c | |||
@@ -1809,3 +1809,8 @@ bool dm_pool_metadata_needs_check(struct dm_pool_metadata *pmd) | |||
1809 | 1809 | ||
1810 | return needs_check; | 1810 | return needs_check; |
1811 | } | 1811 | } |
1812 | |||
1813 | void dm_pool_issue_prefetches(struct dm_pool_metadata *pmd) | ||
1814 | { | ||
1815 | dm_tm_issue_prefetches(pmd->tm); | ||
1816 | } | ||