OSDN Git Service

scsi: core: add scsi_io_completion_action helper
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 23 Jun 2018 10:22:17 +0000 (12:22 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:27:06 +0000 (12:27 -0400)
commitda32baea17e36b2bd95cf38b07d1297daf1d98cf
tree21927789e33f033443585ae68dee2dd2ad767c8a
parentab83108460a2a0d71c5bb22830036c4646e94e63
scsi: core: add scsi_io_completion_action helper

Place scsi_io_completion()'s complex error processing associated with a
local enumeration into a static helper function. That enumeration's values
start with "ACTION_" so use the suffix "_action" in the helper function's
name.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c