Re: [PATCH 4/8] sg: expand request states

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

 



On Fri, 2018-10-19 at 02:24 -0400, Douglas Gilbert wrote: 
+AD4 +-/+ACo Following defines are states of sg+AF8-request::rq+AF8-state +ACo-/
+AD4 +-+ACM-define SG+AF8-RQ+AF8-INACTIVE 0        /+ACo request not in use (e.g. on fl) +ACo-/
+AD4 +-+ACM-define SG+AF8-RQ+AF8-INFLIGHT 1        /+ACo SCSI request issued, no response yet +ACo-/
+AD4 +-+ACM-define SG+AF8-RQ+AF8-AWAIT+AF8-READ 2      /+ACo response received, awaiting read +ACo-/
+AD4 +-+ACM-define SG+AF8-RQ+AF8-DONE+AF8-READ 3       /+ACo read is ongoing or done +ACo-/
+AD4 +-+ACM-define SG+AF8-RQ+AF8-BUSY 4            /+ACo example: reserve request changing size +ACo-/

Please introduce an enumeration type instead of +ACM-defining these constants to
allow the compiler to verify assignments to sg+AF8-request::rq+AF8-state.

Thanks,

Bart.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux