]> 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)
commite666b34ed035aa7648d0915b4c79706d3b23eed8
tree21927789e33f033443585ae68dee2dd2ad767c8a
parent4806e95be46ed8f10dc997deaceed85d4b34ba43
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