From c8a4d700fd2cf1d614f191d7e9bf3ea086950040 Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Mon, 4 Mar 2024 11:57:33 +0100 Subject: [PATCH] Don't BUG on requests from mgmt queue We need to handle those requests as this is how flush from management command is handled. Signed-off-by: Jan Musial Signed-off-by: Robert Baldyga Signed-off-by: Michal Mielewczyk --- src/ocf_request.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ocf_request.c b/src/ocf_request.c index 71ba2da8..3a8083da 100644 --- a/src/ocf_request.c +++ b/src/ocf_request.c @@ -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);