diff --git a/src/engine/cache_engine.c b/src/engine/cache_engine.c index 0750290..2d8b436 100644 --- a/src/engine/cache_engine.c +++ b/src/engine/cache_engine.c @@ -181,6 +181,11 @@ void ocf_resolve_effective_cache_mode(ocf_cache_t cache, 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)) { req->cache_mode = ocf_req_cache_mode_pt; req->seq_cutoff = 1; diff --git a/src/utils/utils_cache_line.h b/src/utils/utils_cache_line.h index d91de44..953a1be 100644 --- a/src/utils/utils_cache_line.h +++ b/src/utils/utils_cache_line.h @@ -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) * * @param req - OCF request to purge