# \[PATCH 0/2\] blk-wbt: fix two wbt enable problems

- From: Zhang Yi \<yi.zhang@huawei.com\>
- Date: 2021-06-19 09:28:10 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/06/6403489
- Thread: https://ratatoskr.run/linux-block/2021/06/6403489/t.md

```text
Commit a79050434b45 ("blk-rq-qos: refactor out common elements of
blk-wbt") introduce two wbt enable problems. The first one will cause
false positive check by rwb_enabled() and lead to IO hung, the second
one is wbt_enable_default() could not re-enable wbt after switch
elevator back from bfq to other one.

Zhang Yi (2):
  blk-wbt: introduce a new disable state to prevent false positive by
    rwb_enabled()
  blk-wbt: make sure throttle is enabled properly

 block/blk-wbt.c | 11 ++++++++---
 block/blk-wbt.h |  1 +
 2 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.31.1

```
