zfcp_fc.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. /*
  2. * zfcp device driver
  3. *
  4. * Fibre Channel related functions for the zfcp device driver.
  5. *
  6. * Copyright IBM Corporation 2008
  7. */
  8. #include "zfcp_ext.h"
  9. struct ct_iu_gpn_ft_req {
  10. struct ct_hdr header;
  11. u8 flags;
  12. u8 domain_id_scope;
  13. u8 area_id_scope;
  14. u8 fc4_type;
  15. } __attribute__ ((packed));
  16. struct gpn_ft_resp_acc {
  17. u8 control;
  18. u8 port_id[3];
  19. u8 reserved[4];
  20. u64 wwpn;
  21. } __attribute__ ((packed));
  22. #define ZFCP_GPN_FT_ENTRIES ((PAGE_SIZE - sizeof(struct ct_hdr)) \
  23. / sizeof(struct gpn_ft_resp_acc))
  24. #define ZFCP_GPN_FT_BUFFERS 4
  25. #define ZFCP_GPN_FT_MAX_ENTRIES ZFCP_GPN_FT_BUFFERS * (ZFCP_GPN_FT_ENTRIES + 1)
  26. struct ct_iu_gpn_ft_resp {
  27. struct ct_hdr header;
  28. struct gpn_ft_resp_acc accept[ZFCP_GPN_FT_ENTRIES];
  29. } __attribute__ ((packed));
  30. struct zfcp_gpn_ft {
  31. struct zfcp_send_ct ct;
  32. struct scatterlist sg_req;
  33. struct scatterlist sg_resp[ZFCP_GPN_FT_BUFFERS];
  34. };
  35. static void _zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req, u32 range,
  36. struct fcp_rscn_element *elem)
  37. {
  38. unsigned long flags;
  39. struct zfcp_port *port;
  40. read_lock_irqsave(&zfcp_data.config_lock, flags);
  41. list_for_each_entry(port, &fsf_req->adapter->port_list_head, list) {
  42. if (atomic_test_mask(ZFCP_STATUS_PORT_WKA, &port->status))
  43. continue;
  44. /* FIXME: ZFCP_STATUS_PORT_DID_DID check is racy */
  45. if (!atomic_test_mask(ZFCP_STATUS_PORT_DID_DID, &port->status))
  46. /* Try to connect to unused ports anyway. */
  47. zfcp_erp_port_reopen(port,
  48. ZFCP_STATUS_COMMON_ERP_FAILED,
  49. 82, fsf_req);
  50. else if ((port->d_id & range) == (elem->nport_did & range))
  51. /* Check connection status for connected ports */
  52. zfcp_test_link(port);
  53. }
  54. read_unlock_irqrestore(&zfcp_data.config_lock, flags);
  55. }
  56. static void zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req)
  57. {
  58. struct fsf_status_read_buffer *status_buffer = (void *)fsf_req->data;
  59. struct fcp_rscn_head *fcp_rscn_head;
  60. struct fcp_rscn_element *fcp_rscn_element;
  61. u16 i;
  62. u16 no_entries;
  63. u32 range_mask;
  64. fcp_rscn_head = (struct fcp_rscn_head *) status_buffer->payload;
  65. fcp_rscn_element = (struct fcp_rscn_element *) status_buffer->payload;
  66. /* see FC-FS */
  67. no_entries = fcp_rscn_head->payload_len /
  68. sizeof(struct fcp_rscn_element);
  69. for (i = 1; i < no_entries; i++) {
  70. /* skip head and start with 1st element */
  71. fcp_rscn_element++;
  72. switch (fcp_rscn_element->addr_format) {
  73. case ZFCP_PORT_ADDRESS:
  74. range_mask = ZFCP_PORTS_RANGE_PORT;
  75. break;
  76. case ZFCP_AREA_ADDRESS:
  77. range_mask = ZFCP_PORTS_RANGE_AREA;
  78. break;
  79. case ZFCP_DOMAIN_ADDRESS:
  80. range_mask = ZFCP_PORTS_RANGE_DOMAIN;
  81. break;
  82. case ZFCP_FABRIC_ADDRESS:
  83. range_mask = ZFCP_PORTS_RANGE_FABRIC;
  84. break;
  85. default:
  86. continue;
  87. }
  88. _zfcp_fc_incoming_rscn(fsf_req, range_mask, fcp_rscn_element);
  89. }
  90. schedule_work(&fsf_req->adapter->scan_work);
  91. }
  92. static void zfcp_fc_incoming_wwpn(struct zfcp_fsf_req *req, wwn_t wwpn)
  93. {
  94. struct zfcp_adapter *adapter = req->adapter;
  95. struct zfcp_port *port;
  96. unsigned long flags;
  97. read_lock_irqsave(&zfcp_data.config_lock, flags);
  98. list_for_each_entry(port, &adapter->port_list_head, list)
  99. if (port->wwpn == wwpn)
  100. break;
  101. read_unlock_irqrestore(&zfcp_data.config_lock, flags);
  102. if (port && (port->wwpn == wwpn))
  103. zfcp_erp_port_forced_reopen(port, 0, 83, req);
  104. }
  105. static void zfcp_fc_incoming_plogi(struct zfcp_fsf_req *req)
  106. {
  107. struct fsf_status_read_buffer *status_buffer =
  108. (struct fsf_status_read_buffer *)req->data;
  109. struct fsf_plogi *els_plogi =
  110. (struct fsf_plogi *) status_buffer->payload;
  111. zfcp_fc_incoming_wwpn(req, els_plogi->serv_param.wwpn);
  112. }
  113. static void zfcp_fc_incoming_logo(struct zfcp_fsf_req *req)
  114. {
  115. struct fsf_status_read_buffer *status_buffer =
  116. (struct fsf_status_read_buffer *)req->data;
  117. struct fcp_logo *els_logo = (struct fcp_logo *) status_buffer->payload;
  118. zfcp_fc_incoming_wwpn(req, els_logo->nport_wwpn);
  119. }
  120. /**
  121. * zfcp_fc_incoming_els - handle incoming ELS
  122. * @fsf_req - request which contains incoming ELS
  123. */
  124. void zfcp_fc_incoming_els(struct zfcp_fsf_req *fsf_req)
  125. {
  126. struct fsf_status_read_buffer *status_buffer =
  127. (struct fsf_status_read_buffer *) fsf_req->data;
  128. unsigned int els_type = status_buffer->payload[0];
  129. zfcp_san_dbf_event_incoming_els(fsf_req);
  130. if (els_type == LS_PLOGI)
  131. zfcp_fc_incoming_plogi(fsf_req);
  132. else if (els_type == LS_LOGO)
  133. zfcp_fc_incoming_logo(fsf_req);
  134. else if (els_type == LS_RSCN)
  135. zfcp_fc_incoming_rscn(fsf_req);
  136. }
  137. static void zfcp_ns_gid_pn_handler(unsigned long data)
  138. {
  139. struct zfcp_gid_pn_data *gid_pn = (struct zfcp_gid_pn_data *) data;
  140. struct zfcp_send_ct *ct = &gid_pn->ct;
  141. struct ct_iu_gid_pn_req *ct_iu_req = sg_virt(ct->req);
  142. struct ct_iu_gid_pn_resp *ct_iu_resp = sg_virt(ct->resp);
  143. struct zfcp_port *port = gid_pn->port;
  144. if (ct->status)
  145. goto out;
  146. if (ct_iu_resp->header.cmd_rsp_code != ZFCP_CT_ACCEPT) {
  147. atomic_set_mask(ZFCP_STATUS_PORT_INVALID_WWPN, &port->status);
  148. goto out;
  149. }
  150. /* paranoia */
  151. if (ct_iu_req->wwpn != port->wwpn)
  152. goto out;
  153. /* looks like a valid d_id */
  154. port->d_id = ct_iu_resp->d_id & ZFCP_DID_MASK;
  155. atomic_set_mask(ZFCP_STATUS_PORT_DID_DID, &port->status);
  156. out:
  157. mempool_free(gid_pn, port->adapter->pool.data_gid_pn);
  158. }
  159. /**
  160. * zfcp_fc_ns_gid_pn_request - initiate GID_PN nameserver request
  161. * @erp_action: pointer to zfcp_erp_action where GID_PN request is needed
  162. * return: -ENOMEM on error, 0 otherwise
  163. */
  164. int zfcp_fc_ns_gid_pn_request(struct zfcp_erp_action *erp_action)
  165. {
  166. int ret;
  167. struct zfcp_gid_pn_data *gid_pn;
  168. struct zfcp_adapter *adapter = erp_action->adapter;
  169. gid_pn = mempool_alloc(adapter->pool.data_gid_pn, GFP_ATOMIC);
  170. if (!gid_pn)
  171. return -ENOMEM;
  172. memset(gid_pn, 0, sizeof(*gid_pn));
  173. /* setup parameters for send generic command */
  174. gid_pn->port = erp_action->port;
  175. gid_pn->ct.port = adapter->nameserver_port;
  176. gid_pn->ct.handler = zfcp_ns_gid_pn_handler;
  177. gid_pn->ct.handler_data = (unsigned long) gid_pn;
  178. gid_pn->ct.timeout = ZFCP_NS_GID_PN_TIMEOUT;
  179. gid_pn->ct.req = &gid_pn->req;
  180. gid_pn->ct.resp = &gid_pn->resp;
  181. gid_pn->ct.req_count = 1;
  182. gid_pn->ct.resp_count = 1;
  183. sg_init_one(&gid_pn->req, &gid_pn->ct_iu_req,
  184. sizeof(struct ct_iu_gid_pn_req));
  185. sg_init_one(&gid_pn->resp, &gid_pn->ct_iu_resp,
  186. sizeof(struct ct_iu_gid_pn_resp));
  187. /* setup nameserver request */
  188. gid_pn->ct_iu_req.header.revision = ZFCP_CT_REVISION;
  189. gid_pn->ct_iu_req.header.gs_type = ZFCP_CT_DIRECTORY_SERVICE;
  190. gid_pn->ct_iu_req.header.gs_subtype = ZFCP_CT_NAME_SERVER;
  191. gid_pn->ct_iu_req.header.options = ZFCP_CT_SYNCHRONOUS;
  192. gid_pn->ct_iu_req.header.cmd_rsp_code = ZFCP_CT_GID_PN;
  193. gid_pn->ct_iu_req.header.max_res_size = ZFCP_CT_MAX_SIZE;
  194. gid_pn->ct_iu_req.wwpn = erp_action->port->wwpn;
  195. ret = zfcp_fsf_send_ct(&gid_pn->ct, adapter->pool.fsf_req_erp,
  196. erp_action);
  197. if (ret)
  198. mempool_free(gid_pn, adapter->pool.data_gid_pn);
  199. return ret;
  200. }
  201. /**
  202. * zfcp_fc_plogi_evaluate - evaluate PLOGI playload
  203. * @port: zfcp_port structure
  204. * @plogi: plogi payload
  205. *
  206. * Evaluate PLOGI playload and copy important fields into zfcp_port structure
  207. */
  208. void zfcp_fc_plogi_evaluate(struct zfcp_port *port, struct fsf_plogi *plogi)
  209. {
  210. port->maxframe_size = plogi->serv_param.common_serv_param[7] |
  211. ((plogi->serv_param.common_serv_param[6] & 0x0F) << 8);
  212. if (plogi->serv_param.class1_serv_param[0] & 0x80)
  213. port->supported_classes |= FC_COS_CLASS1;
  214. if (plogi->serv_param.class2_serv_param[0] & 0x80)
  215. port->supported_classes |= FC_COS_CLASS2;
  216. if (plogi->serv_param.class3_serv_param[0] & 0x80)
  217. port->supported_classes |= FC_COS_CLASS3;
  218. if (plogi->serv_param.class4_serv_param[0] & 0x80)
  219. port->supported_classes |= FC_COS_CLASS4;
  220. }
  221. struct zfcp_els_adisc {
  222. struct zfcp_send_els els;
  223. struct scatterlist req;
  224. struct scatterlist resp;
  225. struct zfcp_ls_adisc ls_adisc;
  226. struct zfcp_ls_adisc_acc ls_adisc_acc;
  227. };
  228. static void zfcp_fc_adisc_handler(unsigned long data)
  229. {
  230. struct zfcp_els_adisc *adisc = (struct zfcp_els_adisc *) data;
  231. struct zfcp_port *port = adisc->els.port;
  232. struct zfcp_ls_adisc_acc *ls_adisc = &adisc->ls_adisc_acc;
  233. if (adisc->els.status) {
  234. /* request rejected or timed out */
  235. zfcp_erp_port_forced_reopen(port, 0, 63, NULL);
  236. goto out;
  237. }
  238. if (!port->wwnn)
  239. port->wwnn = ls_adisc->wwnn;
  240. if (port->wwpn != ls_adisc->wwpn)
  241. zfcp_erp_port_reopen(port, 0, 64, NULL);
  242. out:
  243. zfcp_port_put(port);
  244. kfree(adisc);
  245. }
  246. static int zfcp_fc_adisc(struct zfcp_port *port)
  247. {
  248. struct zfcp_els_adisc *adisc;
  249. struct zfcp_adapter *adapter = port->adapter;
  250. adisc = kzalloc(sizeof(struct zfcp_els_adisc), GFP_ATOMIC);
  251. if (!adisc)
  252. return -ENOMEM;
  253. adisc->els.req = &adisc->req;
  254. adisc->els.resp = &adisc->resp;
  255. sg_init_one(adisc->els.req, &adisc->ls_adisc,
  256. sizeof(struct zfcp_ls_adisc));
  257. sg_init_one(adisc->els.resp, &adisc->ls_adisc_acc,
  258. sizeof(struct zfcp_ls_adisc_acc));
  259. adisc->els.req_count = 1;
  260. adisc->els.resp_count = 1;
  261. adisc->els.adapter = adapter;
  262. adisc->els.port = port;
  263. adisc->els.d_id = port->d_id;
  264. adisc->els.handler = zfcp_fc_adisc_handler;
  265. adisc->els.handler_data = (unsigned long) adisc;
  266. adisc->els.ls_code = adisc->ls_adisc.code = ZFCP_LS_ADISC;
  267. /* acc. to FC-FS, hard_nport_id in ADISC should not be set for ports
  268. without FC-AL-2 capability, so we don't set it */
  269. adisc->ls_adisc.wwpn = fc_host_port_name(adapter->scsi_host);
  270. adisc->ls_adisc.wwnn = fc_host_node_name(adapter->scsi_host);
  271. adisc->ls_adisc.nport_id = fc_host_port_id(adapter->scsi_host);
  272. return zfcp_fsf_send_els(&adisc->els);
  273. }
  274. /**
  275. * zfcp_test_link - lightweight link test procedure
  276. * @port: port to be tested
  277. *
  278. * Test status of a link to a remote port using the ELS command ADISC.
  279. * If there is a problem with the remote port, error recovery steps
  280. * will be triggered.
  281. */
  282. void zfcp_test_link(struct zfcp_port *port)
  283. {
  284. int retval;
  285. zfcp_port_get(port);
  286. retval = zfcp_fc_adisc(port);
  287. if (retval == 0 || retval == -EBUSY)
  288. return;
  289. /* send of ADISC was not possible */
  290. zfcp_port_put(port);
  291. zfcp_erp_port_forced_reopen(port, 0, 65, NULL);
  292. }
  293. static int zfcp_scan_get_nameserver(struct zfcp_adapter *adapter)
  294. {
  295. int ret;
  296. if (!adapter->nameserver_port)
  297. return -EINTR;
  298. if (!atomic_test_mask(ZFCP_STATUS_COMMON_UNBLOCKED,
  299. &adapter->nameserver_port->status)) {
  300. ret = zfcp_erp_port_reopen(adapter->nameserver_port, 0, 148,
  301. NULL);
  302. if (ret)
  303. return ret;
  304. zfcp_erp_wait(adapter);
  305. zfcp_port_put(adapter->nameserver_port);
  306. }
  307. return !atomic_test_mask(ZFCP_STATUS_COMMON_UNBLOCKED,
  308. &adapter->nameserver_port->status);
  309. }
  310. static void zfcp_gpn_ft_handler(unsigned long _done)
  311. {
  312. complete((struct completion *)_done);
  313. }
  314. static void zfcp_free_sg_env(struct zfcp_gpn_ft *gpn_ft)
  315. {
  316. struct scatterlist *sg = &gpn_ft->sg_req;
  317. kfree(sg_virt(sg)); /* free request buffer */
  318. zfcp_sg_free_table(gpn_ft->sg_resp, ZFCP_GPN_FT_BUFFERS);
  319. kfree(gpn_ft);
  320. }
  321. static struct zfcp_gpn_ft *zfcp_alloc_sg_env(void)
  322. {
  323. struct zfcp_gpn_ft *gpn_ft;
  324. struct ct_iu_gpn_ft_req *req;
  325. gpn_ft = kzalloc(sizeof(*gpn_ft), GFP_KERNEL);
  326. if (!gpn_ft)
  327. return NULL;
  328. req = kzalloc(sizeof(struct ct_iu_gpn_ft_req), GFP_KERNEL);
  329. if (!req) {
  330. kfree(gpn_ft);
  331. gpn_ft = NULL;
  332. goto out;
  333. }
  334. sg_init_one(&gpn_ft->sg_req, req, sizeof(*req));
  335. if (zfcp_sg_setup_table(gpn_ft->sg_resp, ZFCP_GPN_FT_BUFFERS)) {
  336. zfcp_free_sg_env(gpn_ft);
  337. gpn_ft = NULL;
  338. }
  339. out:
  340. return gpn_ft;
  341. }
  342. static int zfcp_scan_issue_gpn_ft(struct zfcp_gpn_ft *gpn_ft,
  343. struct zfcp_adapter *adapter)
  344. {
  345. struct zfcp_send_ct *ct = &gpn_ft->ct;
  346. struct ct_iu_gpn_ft_req *req = sg_virt(&gpn_ft->sg_req);
  347. struct completion done;
  348. int ret;
  349. /* prepare CT IU for GPN_FT */
  350. req->header.revision = ZFCP_CT_REVISION;
  351. req->header.gs_type = ZFCP_CT_DIRECTORY_SERVICE;
  352. req->header.gs_subtype = ZFCP_CT_NAME_SERVER;
  353. req->header.options = ZFCP_CT_SYNCHRONOUS;
  354. req->header.cmd_rsp_code = ZFCP_CT_GPN_FT;
  355. req->header.max_res_size = (sizeof(struct gpn_ft_resp_acc) *
  356. (ZFCP_GPN_FT_MAX_ENTRIES - 1)) >> 2;
  357. req->flags = 0;
  358. req->domain_id_scope = 0;
  359. req->area_id_scope = 0;
  360. req->fc4_type = ZFCP_CT_SCSI_FCP;
  361. /* prepare zfcp_send_ct */
  362. ct->port = adapter->nameserver_port;
  363. ct->handler = zfcp_gpn_ft_handler;
  364. ct->handler_data = (unsigned long)&done;
  365. ct->timeout = 10;
  366. ct->req = &gpn_ft->sg_req;
  367. ct->resp = gpn_ft->sg_resp;
  368. ct->req_count = 1;
  369. ct->resp_count = ZFCP_GPN_FT_BUFFERS;
  370. init_completion(&done);
  371. ret = zfcp_fsf_send_ct(ct, NULL, NULL);
  372. if (!ret)
  373. wait_for_completion(&done);
  374. return ret;
  375. }
  376. static void zfcp_validate_port(struct zfcp_port *port)
  377. {
  378. struct zfcp_adapter *adapter = port->adapter;
  379. atomic_clear_mask(ZFCP_STATUS_COMMON_NOESC, &port->status);
  380. if (port == adapter->nameserver_port)
  381. return;
  382. if ((port->supported_classes != 0) || (port->units != 0)) {
  383. zfcp_port_put(port);
  384. return;
  385. }
  386. zfcp_erp_port_shutdown(port, 0, 151, NULL);
  387. zfcp_erp_wait(adapter);
  388. zfcp_port_put(port);
  389. zfcp_port_dequeue(port);
  390. }
  391. static int zfcp_scan_eval_gpn_ft(struct zfcp_gpn_ft *gpn_ft)
  392. {
  393. struct zfcp_send_ct *ct = &gpn_ft->ct;
  394. struct scatterlist *sg = gpn_ft->sg_resp;
  395. struct ct_hdr *hdr = sg_virt(sg);
  396. struct gpn_ft_resp_acc *acc = sg_virt(sg);
  397. struct zfcp_adapter *adapter = ct->port->adapter;
  398. struct zfcp_port *port, *tmp;
  399. u32 d_id;
  400. int ret = 0, x;
  401. if (ct->status)
  402. return -EIO;
  403. if (hdr->cmd_rsp_code != ZFCP_CT_ACCEPT) {
  404. if (hdr->reason_code == ZFCP_CT_UNABLE_TO_PERFORM_CMD)
  405. return -EAGAIN; /* might be a temporary condition */
  406. return -EIO;
  407. }
  408. if (hdr->max_res_size)
  409. return -E2BIG;
  410. down(&zfcp_data.config_sema);
  411. /* first entry is the header */
  412. for (x = 1; x < ZFCP_GPN_FT_MAX_ENTRIES; x++) {
  413. if (x % (ZFCP_GPN_FT_ENTRIES + 1))
  414. acc++;
  415. else
  416. acc = sg_virt(++sg);
  417. d_id = acc->port_id[0] << 16 | acc->port_id[1] << 8 |
  418. acc->port_id[2];
  419. /* skip the adapter's port and known remote ports */
  420. if (acc->wwpn == fc_host_port_name(adapter->scsi_host) ||
  421. zfcp_get_port_by_did(adapter, d_id))
  422. continue;
  423. port = zfcp_port_enqueue(adapter, acc->wwpn,
  424. ZFCP_STATUS_PORT_DID_DID |
  425. ZFCP_STATUS_COMMON_NOESC, d_id);
  426. if (port)
  427. zfcp_erp_port_reopen(port, 0, 149, NULL);
  428. else
  429. ret = -ENOMEM;
  430. if (acc->control & 0x80) /* last entry */
  431. break;
  432. }
  433. zfcp_erp_wait(adapter);
  434. list_for_each_entry_safe(port, tmp, &adapter->port_list_head, list)
  435. zfcp_validate_port(port);
  436. up(&zfcp_data.config_sema);
  437. return ret;
  438. }
  439. /**
  440. * zfcp_scan_ports - scan remote ports and attach new ports
  441. * @adapter: pointer to struct zfcp_adapter
  442. */
  443. int zfcp_scan_ports(struct zfcp_adapter *adapter)
  444. {
  445. int ret, i;
  446. struct zfcp_gpn_ft *gpn_ft;
  447. zfcp_erp_wait(adapter); /* wait until adapter is finished with ERP */
  448. if (fc_host_port_type(adapter->scsi_host) != FC_PORTTYPE_NPORT)
  449. return 0;
  450. ret = zfcp_scan_get_nameserver(adapter);
  451. if (ret)
  452. return ret;
  453. gpn_ft = zfcp_alloc_sg_env();
  454. if (!gpn_ft)
  455. return -ENOMEM;
  456. for (i = 0; i < 3; i++) {
  457. ret = zfcp_scan_issue_gpn_ft(gpn_ft, adapter);
  458. if (!ret) {
  459. ret = zfcp_scan_eval_gpn_ft(gpn_ft);
  460. if (ret == -EAGAIN)
  461. ssleep(1);
  462. else
  463. break;
  464. }
  465. }
  466. zfcp_free_sg_env(gpn_ft);
  467. return ret;
  468. }
  469. void _zfcp_scan_ports_later(struct work_struct *work)
  470. {
  471. zfcp_scan_ports(container_of(work, struct zfcp_adapter, scan_work));
  472. }