Re: [PATCH v2 4/5] block, scsi: Rework runtime power management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2018-07-27 at 09:57 +-0800, jianchao.wang wrote:
+AD4- If q+AF8-usage+AF8-counter is not zero here, we will leave the request+AF8-queue in preempt only mode.

That's on purpose. If q+AF8-usage+AF8-counter is not zero then blk+AF8-pre+AF8-runtime+AF8-suspend()
will return -EBUSY. That error code will be passed to blk+AF8-post+AF8-runtime+AF8-suspend()
and that will cause that function to clear QUEUE+AF8-FLAG+AF8-PREEMPT+AF8-ONLY.

+AD4- The request+AF8-queue should be set to preempt only mode only when we confirm we could set
+AD4- rpm+AF8-status to RPM+AF8-SUSPENDING or RPM+AF8-RESUMING.

Why do you think this?

Bart.





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux