Force pass-through for requests bigger than cache

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski 2020-04-24 15:34:27 +02:00
parent 8fb5317247
commit 67577fc1ef
2 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,11 @@ void ocf_resolve_effective_cache_mode(ocf_cache_t cache,
return; return;
} }
if (req->core_line_count > cache->conf_meta->cachelines) {
req->cache_mode = ocf_req_cache_mode_pt;
return;
}
if (ocf_core_seq_cutoff_check(core, req)) { if (ocf_core_seq_cutoff_check(core, req)) {
req->cache_mode = ocf_req_cache_mode_pt; req->cache_mode = ocf_req_cache_mode_pt;
req->seq_cutoff = 1; req->seq_cutoff = 1;

View File

@ -204,7 +204,7 @@ static inline void _ocf_purge_cache_line_sec(struct ocf_cache *cache,
} }
/** /**
* @brief Purge cache line (remove completely, form collision, move to free * @brief Purge cache line (remove completely, from collision, move to free
* partition, from cleaning policy and eviction policy) * partition, from cleaning policy and eviction policy)
* *
* @param req - OCF request to purge * @param req - OCF request to purge