Author: ram
Date: Tue Jun 5 15:05:26 2018
New Revision: 334657
URL: https://svnweb.freebsd.org/changeset/base/334657
Log:
Issue:
Utility hangs when OCS_IOCTL_CMD_MGMT_GET_ALL called in parallel on port
0 and port 1.
Fix: Using static structure for results is corrupting the second ioctl
request. Removed static for results structure.
Approved by: ken
MFC after: 3 days
Modified:
head/sys/dev/ocs_fc/ocs_mgmt.c
Modified: head/sys/dev/ocs_fc/ocs_mgmt.c
==============================================================================
--- head/sys/dev/ocs_fc/ocs_mgmt.c Tue Jun 5 14:47:13 2018
(r334656)
+++ head/sys/dev/ocs_fc/ocs_mgmt.c Tue Jun 5 15:05:26 2018
(r334657)
@@ -2373,7 +2373,7 @@ static void
get_nv_wwpn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf)
{
char result_string[24];
- static ocs_mgmt_get_nvparms_result_t result;
+ ocs_mgmt_get_nvparms_result_t result;
ocs_sem_init(&(result.semaphore), 0, "get_nv_wwpn");
@@ -2411,7 +2411,7 @@ static void
get_nv_wwnn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf)
{
char result_string[24];
- static ocs_mgmt_get_nvparms_result_t result;
+ ocs_mgmt_get_nvparms_result_t result;
ocs_sem_init(&(result.semaphore), 0, "get_nv_wwnn");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"