Message ID | 1633429419-228500-9-git-send-email-john.garry@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blk-mq: Reduce static requests memory footprint for shared sbitmap | expand |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 1bee153e6b7f..158ee7dbbd76 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2310,6 +2310,10 @@ static void blk_mq_clear_rq_mapping(struct blk_mq_tags *drv_tags, struct page *page; unsigned long flags; + /* There is no need to clear a driver tags own mapping */ + if (drv_tags == tags) + return; + list_for_each_entry(page, &tags->page_list, lru) { unsigned long start = (unsigned long)page_address(page); unsigned long end = start + order_to_size(page->private);