Diffstat (limited to 'block/blk-core.c')
1 files changed, 13 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index ee1b35fe8572..8340f69670d8 100644
@@ -320,6 +320,19 @@ void blk_cleanup_queue(struct request_queue *q)
+ * In theory, request pool of sched_tags belongs to request queue.
+ * However, the current implementation requires tag_set for freeing
+ * requests, so free the pool now.
+ * Queue has become frozen, there can't be any in-queue requests, so
+ * it is safe to free requests now.
+ if (q->elevator)
/* @q is and will stay empty, shutdown and put */