Author: mav
Date: Sun Nov  8 00:31:49 2020
New Revision: 367469
URL: https://svnweb.freebsd.org/changeset/base/367469

Log:
  MFC r367041: Fix incorrect constants of target tag action.
  
  ocs_scsi_recv_cmd() receives the flags after ocs_get_flags_fcp_cmd(),
  which translates them from FCP_TASK_ATTR_* to OCS_SCSI_CMD_*.  As result
  non-SIMPLE requests turned into HEAD or ORDERED depending on direction.

Modified:
  stable/11/sys/dev/ocs_fc/ocs_cam.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/ocs_fc/ocs_cam.c
==============================================================================
--- stable/11/sys/dev/ocs_fc/ocs_cam.c  Sun Nov  8 00:30:53 2020        
(r367468)
+++ stable/11/sys/dev/ocs_fc/ocs_cam.c  Sun Nov  8 00:31:49 2020        
(r367469)
@@ -579,9 +579,9 @@ int32_t ocs_scsi_recv_cmd(ocs_io_t *io, uint64_t lun, 
 
                if (flags & OCS_SCSI_CMD_SIMPLE)
                        atio->tag_action = MSG_SIMPLE_Q_TAG;
-               else if (flags &  FCP_TASK_ATTR_HEAD_OF_QUEUE)
+               else if (flags & OCS_SCSI_CMD_HEAD_OF_QUEUE)
                        atio->tag_action = MSG_HEAD_OF_Q_TAG;
-               else if (flags & FCP_TASK_ATTR_ORDERED)
+               else if (flags & OCS_SCSI_CMD_ORDERED)
                        atio->tag_action = MSG_ORDERED_Q_TAG;
                else
                        atio->tag_action = 0;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to