diff mbox

scsi: libfc: fix ELS request handling

Message ID 20171125183810.20035-1-mwilck@suse.com (mailing list archive)
State Accepted
Headers show

Commit Message

Martin Wilck Nov. 25, 2017, 6:38 p.m. UTC
The modification of fc_lport_recv_els_req() in commit fcabb09e59a7
(merged in 4.12-rc1) caused certain requests not to be handled at all.
Fix that.

Fixes: fcabb09e59a7 "scsi: libfc: directly call ELS request handlers"
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 drivers/scsi/libfc/fc_lport.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Johannes Thumshirn Nov. 27, 2017, 8:16 a.m. UTC | #1
Thanks Martin,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Martin K. Petersen Nov. 29, 2017, 4:59 a.m. UTC | #2
Martin,

> The modification of fc_lport_recv_els_req() in commit fcabb09e59a7
> (merged in 4.12-rc1) caused certain requests not to be handled at all.
> Fix that.

Applied to 4.15/scsi-fixes. Thank you!
diff mbox

Patch

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 2fd0ec651170..787e82435241 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -904,10 +904,14 @@  static void fc_lport_recv_els_req(struct fc_lport *lport,
 		case ELS_FLOGI:
 			if (!lport->point_to_multipoint)
 				fc_lport_recv_flogi_req(lport, fp);
+			else
+				fc_rport_recv_req(lport, fp);
 			break;
 		case ELS_LOGO:
 			if (fc_frame_sid(fp) == FC_FID_FLOGI)
 				fc_lport_recv_logo_req(lport, fp);
+			else
+				fc_rport_recv_req(lport, fp);
 			break;
 		case ELS_RSCN:
 			lport->tt.disc_recv_req(lport, fp);