Re: [PATCH v9 3/4] block: implement runtime pm strategy

2013-02-19 Thread Alan Stern
On Tue, 19 Feb 2013, Aaron Lu wrote: > Hi Alan, > > On Tue, Feb 05, 2013 at 04:03:15PM +0800, Aaron Lu wrote: > > From: Lin Ming > > > > When a request is added: > > If device is suspended or is suspending and the request is not a > > PM request, resume the device. > > > > When the las

Re: [PATCH v9 3/4] block: implement runtime pm strategy

2013-02-18 Thread Aaron Lu
Hi Alan, On Tue, Feb 05, 2013 at 04:03:15PM +0800, Aaron Lu wrote: > From: Lin Ming > > When a request is added: > If device is suspended or is suspending and the request is not a > PM request, resume the device. > > When the last request finishes: > Call pm_runtime_mark_last_busy()

[PATCH v9 3/4] block: implement runtime pm strategy

2013-02-05 Thread Aaron Lu
From: Lin Ming When a request is added: If device is suspended or is suspending and the request is not a PM request, resume the device. When the last request finishes: Call pm_runtime_mark_last_busy(). When pick a request: If device is resuming/suspending, then only PM request i