Print this page
NEX-3414 CLONE - Port 3339 iscsi/fs:5 causes panic on initiator
NEX-3419 CLONE - Run multi initiator sessions to a single target test can panic the initiator
Reviewed by: Steve Peng <steve.peng@nexenta.com>

*** 19,29 **** * CDDL HEADER END */ /* * Copyright 2000 by Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2011 Nexenta Systems, Inc. All rights reserved. * * iSCSI Pseudo HBA Driver */ #include <sys/socket.h> /* networking stuff */ --- 19,29 ---- * CDDL HEADER END */ /* * Copyright 2000 by Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2011, 2015 Nexenta Systems, Inc. All rights reserved. * * iSCSI Pseudo HBA Driver */ #include <sys/socket.h> /* networking stuff */
*** 3508,3522 **** icp = icp->conn_next; } icp = isp->sess_conn_list; while (icp != NULL) { ! if (icp->conn_timeout == B_TRUE) { /* timeout on this connect detected */ idm_ini_conn_disconnect(icp->conn_ic); icp->conn_timeout = B_FALSE; } icp = icp->conn_next; } rw_exit(&isp->sess_conn_list_rwlock); } --- 3508,3525 ---- icp = icp->conn_next; } icp = isp->sess_conn_list; while (icp != NULL) { ! mutex_enter(&icp->conn_state_mutex); ! if ((icp->conn_timeout == B_TRUE) && ! (icp->conn_state_idm_connected == B_TRUE)) { /* timeout on this connect detected */ idm_ini_conn_disconnect(icp->conn_ic); icp->conn_timeout = B_FALSE; } + mutex_exit(&icp->conn_state_mutex); icp = icp->conn_next; } rw_exit(&isp->sess_conn_list_rwlock); }