dm: fix congested_fn for request-based device
authorHou Tao <houtao1@huawei.com>
Tue, 3 Mar 2020 08:45:01 +0000 (16:45 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Mar 2020 16:10:20 +0000 (11:10 -0500)
commit974f51e8633f0f3f33e8f86bbb5ae66758aa63c7
tree600a17e1dc1b0ae6c100f213c6fd539492a42d38
parent248aa2645aa7fc9175d1107c2593cc90d4af5a4e
dm: fix congested_fn for request-based device

We neither assign congested_fn for requested-based blk-mq device nor
implement it correctly. So fix both.

Also, remove incorrect comment from dm_init_normal_md_queue and rename
it to dm_init_congested_fn.

Fixes: 4aa9c692e052 ("bdi: separate out congested state into a separate struct")
Cc: stable@vger.kernel.org
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c