lkml.org 
[lkml]   [2016]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/44] scsi: fc: Export fc_bsg_jobdone
    Date
    Export fc_bsg_jobdone so drivers can use it directly instead of doing
    the round-trip via struct fc_bsg_job::job_done().

    Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
    ---
    drivers/scsi/scsi_transport_fc.c | 4 ++--
    include/scsi/scsi_transport_fc.h | 1 +
    2 files changed, 3 insertions(+), 2 deletions(-)

    diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
    index eafc7555..b0ce417 100644
    --- a/drivers/scsi/scsi_transport_fc.c
    +++ b/drivers/scsi/scsi_transport_fc.c
    @@ -3583,8 +3583,7 @@ fc_destroy_bsgjob(struct fc_bsg_job *job)
    * completed
    * @job: fc_bsg_job that is complete
    */
    -static void
    -fc_bsg_jobdone(struct fc_bsg_job *job)
    +void fc_bsg_jobdone(struct fc_bsg_job *job)
    {
    struct request *req = job->req;
    struct request *rsp = req->next_rq;
    @@ -3611,6 +3610,7 @@ fc_bsg_jobdone(struct fc_bsg_job *job)
    }
    blk_complete_request(req);
    }
    +EXPORT_SYMBOL_GPL(fc_bsg_jobdone);

    /**
    * fc_bsg_softirq_done - softirq done routine for destroying the bsg requests
    diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
    index 921b097..f90044a 100644
    --- a/include/scsi/scsi_transport_fc.h
    +++ b/include/scsi/scsi_transport_fc.h
    @@ -842,5 +842,6 @@ struct fc_vport *fc_vport_create(struct Scsi_Host *shost, int channel,
    struct fc_vport_identifiers *);
    int fc_vport_terminate(struct fc_vport *vport);
    int fc_block_scsi_eh(struct scsi_cmnd *cmnd);
    +void fc_bsg_jobdone(struct fc_bsg_job *job);

    #endif /* SCSI_TRANSPORT_FC_H */
    --
    1.8.5.6
    \
     
     \ /
      Last update: 2016-10-11 13:37    [W:4.079 / U:0.352 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site