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)
commita2fa8a19b75b5a649db2a6bec892ff5e03a23e76
tree593c443465522c03108bb35007a71dc0de0b9b2b
parent4822e902f9bdffaea2817471365e000966f0d1a1
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 4c6994806f70
("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