Avoid stack overflow when pending read misses list is blocked

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2021-07-14 13:04:03 +02:00
parent 740bf06c4b
commit a2b300d465
3 changed files with 6 additions and 1 deletions

View File

@@ -224,6 +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;
ocf_get_io_if(ocf_cache_mode_pt)->read(req);
return 0;
}