Re: [PATCH v2 1/2] blk-stat: fix QUEUE_FLAG_STATS clear

From: Jens Axboe
Date: Thu Apr 13 2023 - 08:49:56 EST



On Thu, 13 Apr 2023 14:28:04 +0800, chengming.zhou@xxxxxxxxx wrote:
> We need to set QUEUE_FLAG_STATS for two cases:
> 1. blk_stat_enable_accounting()
> 2. 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,
--
Jens Axboe