Ram Kishore Vegesna b9732f789d Remove accessing remote node and domain objects while processing cam actions.
Issue:
  ocs_fc(4) driver panics. It's induced by setting the port_state
sysctl to offline, then online, then offline, then online, and so
forth and so on in rapid succession.

Reason:
  While we set the port_state to online fc discovery will start and OS
is enumerating the target discs by calling ocs_action(),  then set the
port state to "offline" which deletes domain/sport/nodes.

  In ocs_action()->XPT_GET_TRAN_SETTINGS we are accessing the remote
node which can be invalid to get the wwpn, wwnn and port.

Fix:
  Removed accessing of remote node and domain in some ocs_action() cases.
  Populated the required values from ocs_fcport.
  This removes the dependency of node and domain structures while
processing XPT_PATH_INQ and XPT_GET_TRAN_SETTINGS.
   We will invalidate the target entries after the device lost
timeout(30 seconds).

Approved by: ken, mav
MFC after: 3 weeks
2019-01-11 15:59:24 +00:00
..
2019-01-07 02:39:40 +00:00
2018-07-07 15:55:52 +00:00
2018-08-10 13:38:23 +00:00
2018-10-15 18:39:33 +00:00
2018-07-17 23:23:45 +00:00
2018-06-15 02:28:36 +00:00
2018-04-13 20:30:49 +00:00
2018-11-09 22:18:43 +00:00
2018-11-29 19:06:05 +00:00
2018-12-12 21:56:45 +00:00
2018-12-17 21:34:09 +00:00
2018-03-14 18:27:06 +00:00
2018-11-28 17:37:17 +00:00
2018-11-28 17:37:17 +00:00
2018-08-01 08:24:34 +00:00
2018-08-07 17:13:42 +00:00
2018-08-21 10:08:12 +00:00
2018-12-31 23:27:56 +00:00
2018-12-26 10:48:39 +00:00
2019-01-08 15:30:56 +00:00
2019-01-08 05:41:04 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2018-09-26 19:41:00 +00:00
2018-09-26 19:41:00 +00:00
2018-07-27 10:40:48 +00:00
2018-07-13 22:49:48 +00:00
2019-01-09 06:21:49 +00:00
2018-11-14 15:39:48 +00:00