Fix for issues #988 and #997

This patch fixes the issue 988 (and 997) causing a kernel stack
overflow.

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
Krzysztof Majzerowicz-Jaszcz
2021-11-23 15:39:57 +01:00
parent 8669a296cc
commit 133ea307c8
3 changed files with 5 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ int ocf_read_pt(struct ocf_request *req)
ocf_engine_traverse(req);
if (req->seq_cutoff && ocf_engine_is_dirty_all(req) &&
!req->bf_blocked) {
!req->force_pt) {
use_cache = true;
} else {
if (ocf_engine_mapped_count(req)) {