Javed Hasan
b2b0f16fa6
scsi: libfc: Avoid invoking response handler twice if ep is already completed
...
A race condition exists between the response handler getting called because
of exchange_mgr_reset() (which clears out all the active XIDs) and the
response we get via an interrupt.
Sequence of events:
rport ba0200: Port timeout, state PLOGI
rport ba0200: Port entered PLOGI state from PLOGI state
xid 1052: Exchange timer armed : 20000 msecs xid timer armed here
rport ba0200: Received LOGO request while in state PLOGI
rport ba0200: Delete port
rport ba0200: work event 3
rport ba0200: lld callback ev 3
bnx2fc: rport_event_hdlr: event = 3, port_id = 0xba0200
bnx2fc: ba0200 - rport not created Yet!!
/* Here we reset any outstanding exchanges before
freeing rport using the exch_mgr_reset() */
xid 1052: Exchange timer canceled
/* Here we got two responses for one xid */
xid 1052: invoking resp(), esb 20000000 state 3
xid 1052: invoking resp(), esb 20000000 state 3
xid 1052: fc_rport_plogi_resp() : ep->resp_active 2
xid 1052: fc_rport_plogi_resp() : ep->resp_active 2
Skip the response if the exchange is already completed.
Link: https://lore.kernel.org/r/20201215194731.2326-1-jhasan@marvell.com
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-01-12 23:07:32 -05:00
..
2020-12-02 12:59:46 -05:00
2020-12-02 12:59:46 -05:00
2020-12-02 12:59:46 -05:00
2020-11-25 23:14:30 -05:00
2020-10-14 15:15:35 -07:00
2020-12-16 13:34:31 -08:00
2020-12-02 12:59:46 -05:00
2020-12-16 13:34:31 -08:00
2020-12-02 12:59:04 -05:00
2020-12-02 12:59:47 -05:00
2020-12-09 12:14:41 -05:00
2020-12-04 01:01:30 +11:00
2020-12-16 13:34:31 -08:00
2020-03-11 23:07:59 -04:00
2020-11-25 23:14:31 -05:00
2020-12-16 13:34:31 -08:00
2020-12-07 20:31:36 -05:00
2021-01-04 13:27:39 -05:00
2021-01-07 22:32:56 -05:00
2020-08-23 17:36:59 -05:00
2020-11-10 23:08:36 -05:00
2021-01-12 23:07:32 -05:00
2020-10-14 15:15:35 -07:00
2020-12-02 12:59:47 -05:00
2021-01-07 22:26:00 -05:00
2021-01-05 23:25:07 -05:00
2020-08-20 23:21:03 -04:00
2020-10-26 18:23:24 -04:00
2020-12-07 17:35:10 -05:00
2020-10-29 21:49:25 -04:00
2021-01-05 23:22:50 -05:00
2020-12-16 13:34:31 -08:00
2020-12-09 11:34:17 -05:00
2020-11-16 23:03:10 -05:00
2020-10-07 23:50:03 -04:00
2020-10-26 18:23:24 -04:00
2021-01-07 22:50:48 -05:00
2020-03-25 11:50:48 +01:00
2020-11-25 23:23:21 -05:00
2017-12-04 20:32:53 -05:00
2020-11-25 23:23:21 -05:00
2019-10-23 17:23:44 +02:00
2018-10-17 21:58:51 -04:00
2020-10-23 16:19:02 -07:00
2020-09-25 06:20:43 +02:00
2019-01-08 07:58:37 -05:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2020-11-10 22:27:47 -05:00
2020-07-08 01:12:53 -04:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2017-11-02 11:10:55 +01:00
2020-12-02 12:59:46 -05:00
2018-06-19 22:02:25 -04:00
2019-05-21 10:50:45 +02:00
2020-11-23 22:12:09 -05:00
2019-11-12 22:21:35 -05:00
2017-11-02 11:10:55 +01:00
2020-08-23 17:36:59 -05:00
2019-06-05 17:37:11 +02:00
2019-05-21 10:50:45 +02:00
2020-02-24 14:54:25 -05:00
2020-04-01 22:03:04 -04:00
2020-11-10 22:27:47 -05:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:36:45 +02:00
2020-09-01 22:15:47 -04:00
2020-03-11 23:07:59 -04:00
2020-08-23 17:36:59 -05:00
2019-12-19 22:08:51 -05:00
2020-09-02 22:49:07 -04:00
2019-06-18 19:46:18 -04:00
2019-07-30 12:17:28 -04:00
2020-07-08 01:12:44 -04:00
2020-08-23 17:36:59 -05:00
2020-12-07 20:24:09 -05:00
2019-01-08 21:58:35 -05:00
2020-03-17 13:36:10 -04:00
2019-01-08 21:57:42 -05:00
2020-10-07 21:48:28 -04:00
2019-01-08 21:58:35 -05:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2020-10-06 08:33:44 -06:00
2020-09-02 22:49:06 -04:00
2020-12-16 13:34:31 -08:00
2020-09-02 22:49:06 -04:00
2020-10-26 18:23:24 -04:00
2019-06-05 17:36:37 +02:00
2020-08-23 17:36:59 -05:00
2017-11-02 11:10:55 +01:00
2020-10-07 21:48:28 -04:00
2020-10-26 18:23:24 -04:00
2020-07-15 17:26:58 -04:00
2020-07-24 22:32:00 -04:00
2018-11-06 21:31:28 -05:00
2020-06-02 21:23:47 -04:00
2020-10-26 21:54:16 -04:00
2019-05-30 11:26:37 -07:00
2020-10-02 21:52:52 -04:00
2020-07-24 22:09:55 -04:00
2020-06-09 09:39:13 -07:00
2020-10-02 15:27:08 -07:00
2020-12-16 13:34:31 -08:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2020-10-02 21:52:53 -04:00
2020-12-07 20:24:09 -05:00
2019-07-17 22:39:27 +09:00
2020-10-14 15:15:35 -07:00
2018-06-19 22:02:25 -04:00
2020-08-23 17:36:59 -05:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2020-11-25 23:23:22 -05:00
2020-03-11 23:07:56 -04:00
2020-12-01 00:03:53 -05:00
2020-01-02 21:57:44 -05:00
2020-12-01 00:03:53 -05:00
2020-01-02 21:57:44 -05:00
2020-08-23 17:36:59 -05:00
2019-05-24 17:36:45 +02:00
2020-12-07 20:24:09 -05:00
2020-12-07 20:24:09 -05:00
2018-06-19 22:02:25 -04:00
2020-09-15 17:34:18 -04:00
2019-05-24 17:39:02 +02:00
2020-11-25 23:23:22 -05:00
2020-03-11 23:07:56 -04:00
2020-08-23 17:36:59 -05:00
2017-11-02 11:10:55 +01:00
2020-12-04 01:01:22 +11:00
2020-09-09 22:37:48 -04:00
2020-01-15 23:09:11 -05:00
2019-03-19 17:11:37 -04:00
2017-11-02 11:10:55 +01:00
2018-12-18 23:19:21 -05:00
2020-10-14 15:15:35 -07:00
2019-02-13 22:07:03 -05:00
2019-06-05 17:37:17 +02:00
2019-05-24 17:36:45 +02:00
2017-12-11 21:39:39 -05:00
2021-01-05 23:28:11 -05:00
2019-07-30 12:42:55 -04:00
2019-05-21 06:16:21 -04:00
2020-10-26 21:54:16 -04:00
2020-07-08 01:16:23 -04:00
2020-10-14 15:15:35 -07:00
2020-08-23 17:36:59 -05:00
2017-11-02 11:10:55 +01:00
2021-01-01 12:58:07 -08:00
2020-07-24 22:09:57 -04:00
2019-12-19 22:08:54 -05:00
2019-05-30 11:26:35 -07:00
2020-07-24 22:09:55 -04:00
2020-10-02 18:53:06 -04:00
2020-02-04 03:05:26 +00:00
2017-11-02 11:10:55 +01:00
2020-10-26 16:05:34 -04:00
2019-05-30 11:29:53 -07:00
2020-11-16 22:33:59 -05:00
2020-03-16 22:08:36 -04:00
2017-11-02 11:10:55 +01:00
2020-10-26 21:54:16 -04:00
2020-12-07 17:45:19 -05:00
2020-08-04 20:56:56 -04:00
2020-12-09 11:41:42 -05:00
2021-01-12 22:56:49 -05:00
2020-06-19 23:06:43 -04:00
2018-06-19 22:02:25 -04:00
2020-12-01 14:53:39 -07:00
2019-06-05 17:37:14 +02:00
2020-09-15 20:08:15 -04:00
2021-01-05 23:46:33 -05:00
2020-10-14 15:15:35 -07:00
2020-09-15 20:28:06 -04:00
2019-07-11 15:14:01 -07:00
2020-10-03 00:02:13 -04:00
2020-09-25 06:20:44 +02:00
2019-05-24 17:36:45 +02:00
2020-10-02 21:52:54 -04:00
2020-12-12 11:12:25 -07:00
2020-02-24 14:59:01 -05:00
2020-12-12 11:12:25 -07:00
2020-02-24 15:01:57 -05:00
2017-11-02 11:10:55 +01:00
2020-10-26 18:23:24 -04:00
2017-11-02 11:10:55 +01:00
2020-12-02 12:59:47 -05:00
2020-12-16 11:49:46 -08:00
2020-08-23 17:36:59 -05:00
2020-10-02 21:52:55 -04:00
2020-10-02 21:52:55 -04:00
2020-10-14 15:15:35 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2019-05-24 17:39:02 +02:00
2019-07-11 15:14:01 -07:00
2018-11-15 14:27:08 -05:00
2020-08-23 17:36:59 -05:00
2020-01-06 09:45:59 +01:00
2019-05-21 10:50:45 +02:00
2020-06-09 09:39:13 -07:00