[PATCH 2/2] blk-mq: Fix I/O hang caused by incomplete device resume

Yang Yang posted 2 patches 5 days, 12 hours ago
[PATCH 2/2] blk-mq: Fix I/O hang caused by incomplete device resume
Posted by Yang Yang 5 days, 12 hours ago
Setting the force_check_resume flag ensures the device is resumed
properly.

Signed-off-by: Yang Yang <yang.yang@vivo.com>
---
 block/blk-pm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/blk-pm.c b/block/blk-pm.c
index 8d3e052f91da..d23918fbd59f 100644
--- a/block/blk-pm.c
+++ b/block/blk-pm.c
@@ -28,6 +28,7 @@
  */
 void blk_pm_runtime_init(struct request_queue *q, struct device *dev)
 {
+	dev->power.force_check_resume = true;
 	q->dev = dev;
 	q->rpm_status = RPM_ACTIVE;
 	pm_runtime_set_autosuspend_delay(q->dev, -1);
-- 
2.34.1