Re: [PATCH V3 0/2] block: fix race between adding wbt and normal IO

From
Jens Axboe <axboe@kernel.dk>
Date
2021-06-16 14:42:21
Reply to
Ming Lei, 2021-06-09
On 6/8/21 7:58 PM, 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 freezing request queue when adding/deleting rq qos.
Applied, thanks.

-- 
Jens Axboe
Thread (9 messages) 9 messages, 4 authors, last reply 2021-06-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help