Re: [PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-15 Thread Yang Yang
On 2020/9/14 21:35, Markus Elfring wrote: … The solution is to wake up the mq_freeze_wq after runtime suspend completed, make blk_pm_request_resume() reexamine the q->rpm_status flag. * Would an imperative wording become helpful for the change description? * How do you think about to add the

Re: [PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-14 Thread Bart Van Assche
On 2020-09-14 00:19, Yang Yang wrote: > There is a race between blk_queue_enter() and block layer's runtime > suspend. > > CPU0CPU1 > - --- > blk_pre_runtime_suspend(q) {blk_queue_enter() { >

[PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-14 Thread Yang Yang
There is a race between blk_queue_enter() and block layer's runtime suspend. CPU0CPU1 - --- blk_pre_runtime_suspend(q) {blk_queue_enter() { /* q->rpm_status=RPM_ACTIVE */ blk_set_pm_only(