libfc: Protect ep->esb_stat changes via ex_lock
authorBart Van Assche <bvanassche@acm.org>
Wed, 14 Aug 2013 15:37:08 +0000 (15:37 +0000)
committerRobert Love <robert.w.love@intel.com>
Wed, 4 Sep 2013 20:23:38 +0000 (13:23 -0700)
This patch avoids that the WARN_ON(!(ep->esb_stat & ESB_ST_SEQ_INIT))
statement in fc_seq_send_locked() gets triggered sporadically when
running FCoE target code due to concurrent ep->esb_stat modifications.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>

No differences found