Author: mav
Date: Mon Nov 30 21:16:26 2015
New Revision: 291496
URL: https://svnweb.freebsd.org/changeset/base/291496

Log:
  MFC r291383: Fix panic when trying to sort unsupported command in OOA queue.
  
  Handle unsupported commands as not conflicting/blocking.

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

Modified: stable/10/sys/cam/ctl/ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl.c Mon Nov 30 19:16:58 2015        (r291495)
+++ stable/10/sys/cam/ctl/ctl.c Mon Nov 30 21:16:26 2015        (r291496)
@@ -11093,6 +11093,8 @@ ctl_check_for_blockage(struct ctl_lun *l
             __func__, pending_entry->seridx, pending_io->scsiio.cdb[0],
             pending_io->scsiio.cdb[1], pending_io));
        ooa_entry = ctl_get_cmd_entry(&ooa_io->scsiio, NULL);
+       if (ooa_entry->seridx == CTL_SERIDX_INVLD)
+               return (CTL_ACTION_PASS); /* Unsupported command in OOA queue */
        KASSERT(ooa_entry->seridx < CTL_SERIDX_COUNT,
            ("%s: Invalid seridx %d for ooa CDB %02x %02x @ %p",
             __func__, ooa_entry->seridx, ooa_io->scsiio.cdb[0],
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to