summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2014-11-24 20:46:29 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-25 15:42:57 +0100
commitc2248fc974df7be55a5f6db6b6f99a90b749581b (patch)
tree73117721a14603545743fecc6294ef65321958a5 /drivers/char
parent0d01c5df5cd470515a88a454ba69126f4b7abdab (diff)
downloadop-kernel-dev-c2248fc974df7be55a5f6db6b6f99a90b749581b.zip
op-kernel-dev-c2248fc974df7be55a5f6db6b6f99a90b749581b.tar.gz
scsi_debug: change SCSI command parser to table driven
The existing 'big switch' parser in queuecommand() is changed to a table driven parser. The old and new queuecommand() were moved in the source so diff would not shuffle them. Apart from the new tables most other changes are refactoring existing response code to be more easily called out of the table parser. The 'strict' parameter is added so that cdb_s can be checked for non-zero values in parts of the cdb that are reserved. Some other changes include: tweak request sense response when D_SENSE differs; support NDOB in Write Same(16); and fix crash in Get LBA Status when LBP was inactive. Signed-off-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud