drm/amdgpu: Only create err_count sysfs when hw_op is supported
[platform/kernel/linux-starfive.git] / drivers / target / target_core_iblock.c
index a3c5f35..3d1b511 100644 (file)
@@ -888,7 +888,7 @@ static sense_reason_t iblock_execute_pr_out(struct se_cmd *cmd, u8 sa, u64 key,
 
                ret = ops->pr_preempt(bdev, key, sa_key,
                                      scsi_pr_type_to_block(type),
-                                     sa == PRO_PREEMPT ? false : true);
+                                     sa == PRO_PREEMPT_AND_ABORT);
                break;
        case PRO_RELEASE:
                if (!ops->pr_clear) {