Do not increment attached metadata counter on behalf of mngt requests

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2019-04-30 15:59:20 -04:00
parent 9232bfcb72
commit 555f477248

View File

@ -155,6 +155,9 @@ static void start_cache_req(struct ocf_request *req)
{ {
ocf_cache_t cache = req->cache; ocf_cache_t cache = req->cache;
if (req->queue == req->cache->mngt_queue)
return;
req->d2c = 1; req->d2c = 1;
if (env_atomic_read(&cache->attached)) { if (env_atomic_read(&cache->attached)) {
req->d2c = 0; req->d2c = 0;