diff options
author | Jan Kara <[email protected]> | 2017-04-11 11:29:01 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-04-11 08:09:14 -0600 |
commit | 3f19cd23f3a9420fe7bd98ad41d05e45fa6d4d47 (patch) | |
tree | 1070c884072bcc98912373ca6953c2010451b1a5 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | f5c0b0910ac4c1bc93474d7593cc73622fdfc822 (diff) |
block: Fix list corruption of blk stats callback list
When CFQ calls wbt_disable_default(), it will call
blk_stat_remove_callback() to stop gathering IO statistics for the
purposes of writeback throttling. Later, when request_queue is
unregistered, wbt_exit() will call blk_stat_remove_callback() again
which will try to delete callback from the list again and possibly cause
list corruption.
Fix the problem by making wbt_disable_default() called wbt_exit() which
is properly guarded against being called multiple times.
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions