Author: ken
Date: Mon Feb 20 20:12:02 2017
New Revision: 313997
URL: https://svnweb.freebsd.org/changeset/base/313997

Log:
  MFC 313895:
  
    ------------------------------------------------------------------------
    r313895 | ken | 2017-02-17 13:15:27 -0700 (Fri, 17 Feb 2017) | 9 lines
  
    Make ctl(4) build with CTL_IO_DELAY defined.
  
    sys/cam/ctl/ctl.c:
        In ctl_datamove(), inside CTL_IO_DELAY, add a lun variable and fill
        it in before trying to dereference it.
  
    Sponsored by:       Spectra Logic
  
    ------------------------------------------------------------------------

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

Modified: stable/11/sys/cam/ctl/ctl.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl.c Mon Feb 20 19:08:36 2017        (r313996)
+++ stable/11/sys/cam/ctl/ctl.c Mon Feb 20 20:12:02 2017        (r313997)
@@ -12402,6 +12402,9 @@ ctl_datamove(union ctl_io *io)
        if (io->io_hdr.flags & CTL_FLAG_DELAY_DONE) {
                io->io_hdr.flags &= ~CTL_FLAG_DELAY_DONE;
        } else {
+               struct ctl_lun *lun;
+
+               lun = CTL_LUN(io);
                if ((lun != NULL)
                 && (lun->delay_info.datamove_delay > 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