]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
block: Add blk_set_runtime_active()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Feb 2016 08:54:11 +0000 (10:54 +0200)
committerPreetham Chandru <pchandru@nvidia.com>
Wed, 15 Jun 2016 11:07:21 +0000 (04:07 -0700)
commitf2cd3cc83037d7dc71997a5e360806779376f824
treed337b4d83562e51e297589ca078b1725bcb8098e
parent2669d313c28c3f0282435f55a3cf2f85143d0f0a
block: Add blk_set_runtime_active()

If block device is left runtime suspended during system suspend, resume
hook of the driver typically corrects runtime PM status of the device back
to "active" after it is resumed. However, this is not enough as queue's
runtime PM status is still "suspended". As long as it is in this state
blk_pm_peek_request() returns NULL and thus prevents new requests to be
processed.

Add new function blk_set_runtime_active() that can be used to force the
queue status back to "active" as needed.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit d07ab6d114774d7fcb53c57d7474aef459713451)
Change-Id: I62b5a62e12c191b6f16dac91ea750af3163bbdca
Reviewed-on: http://git-master/r/1164712
GVS: Gerrit_Virtual_Submit
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
block/blk-core.c
include/linux/blkdev.h