blk-wbt: remove dead code to handle wbt enable/disable with io inflight
authorYu Kuai <yukuai3@huawei.com>
Sat, 27 May 2023 01:06:41 +0000 (09:06 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2023 15:53:36 +0000 (09:53 -0600)
commit71b8642e79f277459555629f2bea1a8d1fed307e
treeb9f8df73c71933620657de3edb38ffcefcc57d97
parent645a829e03384a235b3760959d4ebe420a0f2027
blk-wbt: remove dead code to handle wbt enable/disable with io inflight

enable or disable wbt is always called with queue freezed, so that wbt
can never be enabled or disabled while io is still inflight, and this
behaviour should always hold to avoid io hang(There have been reported
several times).

Therefor, the code to handle wbt enable/diskble with io inflight is not
and never will be used, hence remove such dead code.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230527010644.647900-3-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c