On Thu, 13 Apr 2023 14:28:04 +0800, chengming.zhou@linux.dev wrote:
We need to set QUEUE_FLAG_STATS for two cases:
- blk_stat_enable_accounting()
- blk_stat_add_callback()
So we should clear it only when ((q->stats->accounting == 0) && list_empty(&q->stats->callbacks)).
[...]
Applied, thanks!
[1/2] blk-stat: fix QUEUE_FLAG_STATS clear commit: 20de765f6d9da0c47b756429c60b41063b990a10 [2/2] blk-throttle: only enable blk-stat when BLK_DEV_THROTTLING_LOW commit: 8e15dfbd9ae21e518979e3823e335073e725f445
Best regards,