sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue
[linux.git] / drivers / scsi / sym53c8xx_2 / sym_hipd.c
index d92fe4037e942faef6472ae57d87b0a74e24c0a3..6b349e3018692435b3523f8d0cef4e4daaf6f3ef 100644 (file)
@@ -3000,7 +3000,11 @@ sym_dequeue_from_squeue(struct sym_hcb *np, int i, int target, int lun, int task
                if ((target == -1 || cp->target == target) &&
                    (lun    == -1 || cp->lun    == lun)    &&
                    (task   == -1 || cp->tag    == task)) {
+#ifdef SYM_OPT_HANDLE_DEVICE_QUEUEING
                        sym_set_cam_status(cp->cmd, DID_SOFT_ERROR);
+#else
+                       sym_set_cam_status(cp->cmd, DID_REQUEUE);
+#endif
                        sym_remque(&cp->link_ccbq);
                        sym_insque_tail(&cp->link_ccbq, &np->comp_ccbq);
                }