cleaner: Fix master request refcnt
Commit db6b009ef
introduced changes in managing the master request life cycle,
but apparently not all paths have been updated. This change removes a redundant
ocf_req_get() before sending the requets into a queue
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
63f4a373ec
commit
736665af47
@ -216,7 +216,6 @@ static void _ocf_cleaner_complete_req(struct ocf_request *req)
|
|||||||
OCF_DEBUG_MSG(req->cache, "All cleaning request completed");
|
OCF_DEBUG_MSG(req->cache, "All cleaning request completed");
|
||||||
|
|
||||||
if (master->complete_queue) {
|
if (master->complete_queue) {
|
||||||
ocf_req_get(master);
|
|
||||||
ocf_queue_push_req_cb(master, _ocf_cleaner_complete,
|
ocf_queue_push_req_cb(master, _ocf_cleaner_complete,
|
||||||
OCF_QUEUE_ALLOW_SYNC | OCF_QUEUE_PRIO_HIGH);
|
OCF_QUEUE_ALLOW_SYNC | OCF_QUEUE_PRIO_HIGH);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user