From: Lin Ming Date: Sat, 23 Mar 2013 03:42:27 +0000 (+0800) Subject: block: implement runtime pm strategy X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~11^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8158819d506a8aedeca53c52dfb709a0aabe011;p=pandora-kernel.git block: implement runtime pm strategy 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 is allowed to go. The idea and API is designed by Alan Stern and described here: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 Signed-off-by: Lin Ming Signed-off-by: Aaron Lu Acked-by: Alan Stern Signed-off-by: Jens Axboe --- Reading git-diff-tree failed