lpfc 8.3.22: Add new mailbox command and new BSG fix
Subsystems (2)
PATCH 1/6 lpfc 8.3.22: Add new mailbox command and new BSG fix
- Add new Queue Create Mailbox version support
- Make lpfc_bsg_wake_mbox_wait routine check the mailboxes job reference before using it.
Signed-off-by Alex Iannicelli <[email protected]>
Signed-off-by James Smart <[email protected]>
---
lpfc_bsg.c | 18 ++-- lpfc_hw4.h | 101 ++++++++++++++++++--------- lpfc_sli.c | 228 +++++++++++++++++++++++++++++++++++++++---------------------- 3 files changed, 229 insertions(+), 118 deletions(-)
drivers/scsi/lpfc/lpfc_bsg.c +10 -8
@@ -2479,16 +2479,18 @@ lpfc_bsg_wake_mbox_wait(struct lpfc_hba from = (uint8_t *)dd_data->context_un.mbox.mb; job = dd_data->context_un.mbox.set_job; - size = job->reply_payload.payload_len; - job->reply->reply_payload_rcv_len = -sg_copy_from_buffer (job->reply_payload.sg_list, - job->reply_payload.sg_cnt, - from, size); - job->reply->result =0 ; +if (job) { + size = job->reply_payload.payload_len; + job->reply->reply_payload_rcv_len = +sg_copy_from_buffer (job->reply_payload.sg_list, + job->reply_payload.sg_cnt, + from, size); + job->reply->result =0 ; + job->dd_data =NULL ; + job->job_done (job); + } dd_data->context_un.mbox.set_job =NULL ; - job->dd_data =NULL ; - job->job_done (job);/* need to hold the lock until we call job done to hold off * the timeout handler returning to the midlayer while * we are stillprocessing the job
drivers/scsi/lpfc/lpfc_hw4.h +71 -30
165 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.c +148 -80
342 lines not on this page · raw message