# Re: \[PATCH 1/5\] mm: hide laptop\_mode\_wb\_timer entirely behind the BDI API

- From: Johannes Thumshirn \<hidden\>
- Date: 2021-08-09 14:38:02 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/08/211866
- Thread: https://ratatoskr.run/linux-block/2021/08/211860/t.md

```text
On 09/08/2021 16:19, Christoph Hellwig wrote:
> Don't leak the detaіls of the timer into the block layer, instead
> initialize the timer in bdi_alloc and delete it in bdi_unregister.
> Note that this means the timer is initialized (but not armed) for
> non-block queues as well now.

And laptop_mode_timer_fn() is always present now.

Other than that,
Reviewed-by: Johannes Thumshirn <redacted>
```
