On Wed, 23 May 2012, Lin Ming wrote:
> >> + � � � � � � /* Only PM request is allowed to go if the queue is suspended */
> >> + � � � � � � if (q->rpm_status != RPM_ACTIVE && !(rq->cmd_flags & REQ_PM)) {
> >> + � � � � � � � � � � rq = NULL;
> >> + � � � � � � � � � � break;
> >> + � � � � � � }
> >
> > Not even PM requests should be allowed to go if the status is
> > RPM_SUSPENDED.
>
> PM requests are used to wake up the device.
> If they are not allowed to go, then how to wake up the device?
When blk_pre_runtime_resume runs, the status is changed to
RPM_RESUMING. _Then_ PM requests are allowed to go. Not before.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[SCSI Target Devel]
[Linux SCSI Target Infrastructure]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photos]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Linux IIO]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]