From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH v4 07/10] block, scsi: Rework runtime power management To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , "Martin K . Petersen" , Ming Lei , Alan Stern , Johannes Thumshirn References: <20180804000325.3610-1-bart.vanassche@wdc.com> <20180804000325.3610-8-bart.vanassche@wdc.com> From: "jianchao.wang" Message-ID: Date: Mon, 6 Aug 2018 10:46:38 +0800 MIME-Version: 1.0 In-Reply-To: <20180804000325.3610-8-bart.vanassche@wdc.com> Content-Type: text/plain; charset=utf-8 List-ID: Hi Bart On 08/04/2018 08:03 AM, Bart Van Assche wrote: > Instead of allowing requests that are not power management requests > to enter the queue in runtime suspended status (RPM_SUSPENDED), make > the blk_get_request() caller block. Who will resume the runtime suspended device ? In original blk-legacy, when a request is added, blk_pm_add_request will call pm_request_resume could do that. The request will be issued after the q is resumed successfully. After this patch, non-pm request will be blocked and pm_request_resume is removed from blk_pm_add_request, who does resume the runtime suspended q and device ? Thanks Jianchao