]> git.baikalelectronics.ru Git - kernel.git/commit
cfq: clear queue pointers from cfqg after unpinning them in cfq_pd_offline
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Wed, 10 Oct 2018 21:16:50 +0000 (23:16 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Oct 2018 17:46:19 +0000 (11:46 -0600)
commitb7d124e02174187ca93ac5d381975bf0dd9cfd6c
tree593c443465522c03108bb35007a71dc0de0b9b2b
parent65cc2c00b6c2809f389ff790872fed5871a048e2
cfq: clear queue pointers from cfqg after unpinning them in cfq_pd_offline

BFQ is already doing a similar thing in its .pd_offline_fn() method
implementation.

While it seems that after commit c0c59b1ec32a
("blk-throttle: fix race between blkcg_bio_issue_check() and cgroup_rmdir()")
was reverted leaving these pointers intact no longer causes crashes
clearing them is still a sensible thing to do to make the code more robust.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c