# Re: \[PATCH 0/4\] block: fix race between adding wbt and normal IO

- From: Ming Lei \<hidden\>
- Date: 2021-06-04 00:03:38 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/06/6403167
- Thread: https://ratatoskr.run/linux-block/2021/05/6402949/t.md

```text
On Tue, May 25, 2021 at 04:04:38PM +0800, Ming Lei wrote:
> Hello,
> 
> Yi reported several kernel panics on:
> 
> [16687.001777] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
> ...
> [16687.163549] pc : __rq_qos_track+0x38/0x60
> 
> or
> 
> [  997.690455] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020
> ...
> [  997.850347] pc : __rq_qos_done+0x2c/0x50
> 
> Turns out it is caused by race between adding wbt and normal IO.
> 
> Fix the issue by moving wbt allocation/addition into blk_alloc_queue().

Hello Guys,

Ping...


Thanks,
Ming

```
