Message ID | 20220304160331.399757-3-hch@lst.de |
---|---|
State | Superseded |
Headers | show |
Series | [01/14] blk-mq: do not include passthrough requests in I/O accounting | expand |
Christoph, > To simplify further changes allow for double calling blk_mq_free_rqs > on a queue. Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
diff --git a/block/blk-mq.c b/block/blk-mq.c index ab4b646551334..6fd0b0f652514 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -3070,6 +3070,9 @@ void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags, struct blk_mq_tags *drv_tags; struct page *page; + if (list_empty(&tags->page_list)) + return; + if (blk_mq_is_shared_tags(set->flags)) drv_tags = set->shared_tags; else