OSDN Git Service

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

Since the action "reprep" is called from two places, rather than repeat the
code, make a new scsi_io_completion helper with "reprep" as its suffix.

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