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:
@@ -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)) {
|
||||
|
@@ -224,7 +224,7 @@ int ocf_read_generic(struct ocf_request *req)
|
||||
|
||||
if (env_atomic_read(&cache->pending_read_misses_list_blocked)) {
|
||||
/* There are conditions to bypass IO */
|
||||
req->bf_blocked = true;
|
||||
req->force_pt = true;
|
||||
ocf_get_io_if(ocf_cache_mode_pt)->read(req);
|
||||
return 0;
|
||||
}
|
||||
@@ -254,6 +254,7 @@ int ocf_read_generic(struct ocf_request *req)
|
||||
}
|
||||
} else {
|
||||
ocf_req_clear(req);
|
||||
req->force_pt = true;
|
||||
ocf_get_io_if(ocf_cache_mode_pt)->read(req);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user