diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index acdc72d6b873..02200b26d897 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -932,14 +932,17 @@ void fc_rport_recv_req(struct fc_seq *sp, struct fc_frame *fp, | |||
932 | fh = fc_frame_header_get(fp); | 932 | fh = fc_frame_header_get(fp); |
933 | s_id = ntoh24(fh->fh_s_id); | 933 | s_id = ntoh24(fh->fh_s_id); |
934 | 934 | ||
935 | mutex_lock(&lport->disc.disc_mutex); | ||
935 | rdata = lport->tt.rport_lookup(lport, s_id); | 936 | rdata = lport->tt.rport_lookup(lport, s_id); |
936 | if (!rdata) { | 937 | if (!rdata) { |
938 | mutex_unlock(&lport->disc.disc_mutex); | ||
937 | els_data.reason = ELS_RJT_UNAB; | 939 | els_data.reason = ELS_RJT_UNAB; |
938 | lport->tt.seq_els_rsp_send(sp, ELS_LS_RJT, &els_data); | 940 | lport->tt.seq_els_rsp_send(sp, ELS_LS_RJT, &els_data); |
939 | fc_frame_free(fp); | 941 | fc_frame_free(fp); |
940 | return; | 942 | return; |
941 | } | 943 | } |
942 | mutex_lock(&rdata->rp_mutex); | 944 | mutex_lock(&rdata->rp_mutex); |
945 | mutex_unlock(&lport->disc.disc_mutex); | ||
943 | 946 | ||
944 | op = fc_frame_payload_op(fp); | 947 | op = fc_frame_payload_op(fp); |
945 | switch (op) { | 948 | switch (op) { |