]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
block: really disable runtime-pm for blk-mq
authorMing Lei <ming.lei@redhat.com>
Mon, 30 Jul 2018 12:02:19 +0000 (20:02 +0800)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:32 +0000 (19:45 -0600)
commit99a6d169c3e08b9441404bf843e16f9a87cad76d
treeddab4d7c1114205968cbd7044cc76966e2850b96
parent001b077d3a4687d17cfefbccd0daad4be2c6ac86
block: really disable runtime-pm for blk-mq

BugLink: https://bugs.launchpad.net/bugs/1835972
commit b233f127042dba991229e3882c6217c80492f6ef upstream.

Runtime PM isn't ready for blk-mq yet, and commit 765e40b675a9 ("block:
disable runtime-pm for blk-mq") tried to disable it. Unfortunately,
it can't take effect in that way since user space still can switch
it on via 'echo auto > /sys/block/sdN/device/power/control'.

This patch disables runtime-pm for blk-mq really by pm_runtime_disable()
and fixes all kinds of PM related kernel crash.

Cc: Tomas Janousek <tomi@nomi.cz>
Cc: Przemek Socha <soprwa@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: <stable@vger.kernel.org>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
block/blk-core.c