Fix panic when trying to sort unsupported command in OOA queue.

Handle unsupported commands as not conflicting/blocking.
This commit is contained in:
Alexander Motin 2015-11-27 14:29:04 +00:00
parent 937744df07
commit 2d80af4f4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291383

View File

@ -11091,6 +11091,8 @@ ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io,
__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],