Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't BUG on requests from mgmt queue #830

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/ocf_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ struct ocf_request *ocf_req_new(ocf_queue_t queue, ocf_core_t core,
struct ocf_request *req;
bool map_allocated = true;

ENV_BUG_ON(ocf_queue_is_mngt(queue));
/* FIXME: We curently allow allocation of the requests on the
* management queue to be able to handle cache/core flush in
* multi-level stack, as the cleaner request can enter the lower
* level cache and the queue is upper cache mngt_queue.
* We need to handle this situation as a special case in the
* multi-level forward path and then uncomment the line below.
*/
/* ENV_BUG_ON(ocf_queue_is_mngt(queue)); */

ocf_queue_get(queue);

Expand Down