scsi: fc: Export fc_bsg_jobdone and use it in FC drivers
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 17 Nov 2016 09:31:13 +0000 (10:31 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Nov 2016 01:15:25 +0000 (20:15 -0500)
commit1abaede71560fa98b97d8e6b172a14e6383f633d
tree8de47872faf9e26b8a16cbcfea6de5c6e207c724
parent01e0e15c8b3b32e006e5cccac10c8b377ac3d803
scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

Export fc_bsg_jobdone so drivers can use it directly instead of doing
the round-trip via struct fc_bsg_job::job_done() and use it in the
LLDDs.  That way we can also unify the interfaces of fc_bsg_jobdone and
bsg_job_done.

As we've converted all LLDDs over to use fc_bsg_jobdone() directly, we
can remove the function pointer from struct fc_bsg_job as well.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_fc.c
drivers/scsi/bfa/bfad_bsg.c
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/libfc/fc_lport.c
drivers/scsi/lpfc/lpfc_bsg.c
drivers/scsi/qla2xxx/qla_bsg.c
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h