File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ pub enum NvmeAerInfoNvmCommandSet {
40
40
41
41
/// Check if the Completion Queue Entry indicates abnormal termination of
42
42
/// request due to any of the following conditions:
43
- /// - Any media specific errors that occur in the NVM or data integrity type
44
- /// errors.
43
+ /// - An Status Code Type(SCT) of media specific errors that occur in the NVM
44
+ /// or data integrity type errors, AND a Status Code(SC) value pertaining to
45
+ /// one of the below:
45
46
/// - The command was aborted due to an end-to-end guard check failure.
46
47
/// - The command was aborted due to an end-to-end application tag check
47
48
/// failure.
@@ -59,9 +60,9 @@ pub(crate) fn nvme_cpl_is_pi_error(cpl: *const spdk_nvme_cpl) -> bool {
59
60
}
60
61
61
62
sct == NvmeStatusCodeType :: MediaError as u16
62
- || sc == NvmeMediaErrorStatusCode :: Guard as u16
63
- || sc == NvmeMediaErrorStatusCode :: ApplicationTag as u16
64
- || sc == NvmeMediaErrorStatusCode :: ReferenceTag as u16
63
+ && ( sc == NvmeMediaErrorStatusCode :: Guard as u16
64
+ || sc == NvmeMediaErrorStatusCode :: ApplicationTag as u16
65
+ || sc == NvmeMediaErrorStatusCode :: ReferenceTag as u16 )
65
66
}
66
67
67
68
#[ inline]
You can’t perform that action at this time.
0 commit comments