svn commit: r367468 - stable/12/sys/dev/ocs_fc

Alexander Motin mav at FreeBSD.org
Sun Nov 8 00:30:54 UTC 2020


Author: mav
Date: Sun Nov  8 00:30:53 2020
New Revision: 367468
URL: https://svnweb.freebsd.org/changeset/base/367468

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/12/sys/dev/ocs_fc/ocs_cam.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/ocs_fc/ocs_cam.c
==============================================================================
--- stable/12/sys/dev/ocs_fc/ocs_cam.c	Sun Nov  8 00:00:49 2020	(r367467)
+++ stable/12/sys/dev/ocs_fc/ocs_cam.c	Sun Nov  8 00:30:53 2020	(r367468)
@@ -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;


More information about the svn-src-all mailing list