mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
that accepts FCP requests from libfc HBAs running Fibre Channel over Ethernet (FCoE) and passes them to SCST. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
libfc: fix sequence-initiative WARN in fc_seq_start_next
|
|
|
|
The target code was getting a warning that sequence initiative
|
|
wasn't held when starting the response sequence after sending
|
|
the data sequence.
|
|
|
|
The bug was that sequence initiative was cleared due to the
|
|
END_SEQ flag being on. The intent may have been to check LAST_SEQ.
|
|
Change just to check SEQ_INIT.
|
|
|
|
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
|
|
|
|
---
|
|
drivers/scsi/libfc/fc_exch.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
|
|
---
|
|
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
|
|
index 7f43647..1ad1ded 100644
|
|
--- a/drivers/scsi/libfc/fc_exch.c
|
|
+++ b/drivers/scsi/libfc/fc_exch.c
|
|
@@ -488,7 +488,7 @@ static int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp,
|
|
*/
|
|
spin_lock_bh(&ep->ex_lock);
|
|
ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */
|
|
- if (f_ctl & (FC_FC_END_SEQ | FC_FC_SEQ_INIT))
|
|
+ if (f_ctl & FC_FC_SEQ_INIT)
|
|
ep->esb_stat &= ~ESB_ST_SEQ_INIT;
|
|
spin_unlock_bh(&ep->ex_lock);
|
|
return error;
|