]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit985c8a4078aaeb617ffaeeef38f080103bb6edc6
tree21927789e33f033443585ae68dee2dd2ad767c8a
parenta4bb0466af27696fe7885bd4293480f698f0c369
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