Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257824
b: refs/heads/master
c: 4805848
h: refs/heads/master
v: v3
  • Loading branch information
Kiran Patil authored and James Bottomley committed Jun 29, 2011
1 parent 9cec5c5 commit 3fef8ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 516f43a2a555000e77c1d59b8298cb46aad9ecc1
refs/heads/master: 480584818a4bb3655d8d0d875ed60b427fc61cc5
14 changes: 14 additions & 0 deletions trunk/drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,20 @@ static void fc_rport_recv_flogi_req(struct fc_lport *lport,

switch (rdata->rp_state) {
case RPORT_ST_INIT:
/*
* If received the FLOGI request on RPORT which is INIT state
* (means not transition to FLOGI either fc_rport timeout
* function didn;t trigger or this end hasn;t received
* beacon yet from other end. In that case only, allow RPORT
* state machine to continue, otherwise fall through which
* causes the code to send reject response.
* NOTE; Not checking for FIP->state such as VNMP_UP or
* VNMP_CLAIM because if FIP state is not one of those,
* RPORT wouldn;t have created and 'rport_lookup' would have
* failed anyway in that case.
*/
if (lport->point_to_multipoint)
break;
case RPORT_ST_DELETE:
mutex_unlock(&rdata->rp_mutex);
rjt_data.reason = ELS_RJT_FIP;
Expand Down

0 comments on commit 3fef8ac

Please sign in to comment.