svn commit: r288756 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Oct 5 09:19:15 UTC 2015


Author: mav
Date: Mon Oct  5 09:19:14 2015
New Revision: 288756
URL: https://svnweb.freebsd.org/changeset/base/288756

Log:
  MFC r287783: Implement data/status aggregation for camsim backend.
  
  This is almost pointless for primary HA node, but useful for secondary,
  where between fe_datamove and fe_done calls goes another link roundtrip.

Modified:
  stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c	Mon Oct  5 09:18:22 2015	(r288755)
+++ stable/10/sys/cam/ctl/ctl_frontend_cam_sim.c	Mon Oct  5 09:19:14 2015	(r288756)
@@ -435,6 +435,13 @@ cfcs_datamove(union ctl_io *io)
 
 	io->scsiio.ext_data_filled += len_copied;
 
+	if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) {
+		io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = NULL;
+		io->io_hdr.flags |= CTL_FLAG_STATUS_SENT;
+		ccb->ccb_h.status = CAM_REQ_CMP;
+		xpt_done(ccb);
+	}
+
 	io->scsiio.be_move_done(io);
 }
 


More information about the svn-src-all mailing list