Skip to content
Snippets Groups Projects
Commit b6e3ca20 authored by Robert Read's avatar Robert Read
Browse files

use assignment instead of memset to clear the conn_cnt.
parent 5e13006e
No related branches found
No related tags found
No related merge requests found
...@@ -630,7 +630,7 @@ int ptlrpc_disconnect_import(struct obd_import *imp) ...@@ -630,7 +630,7 @@ int ptlrpc_disconnect_import(struct obd_import *imp)
out: out:
IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_CLOSED); IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_CLOSED);
memset(&imp->imp_remote_handle, 0, sizeof(imp->imp_remote_handle)); memset(&imp->imp_remote_handle, 0, sizeof(imp->imp_remote_handle));
memset(&imp->imp_conn_cnt, 0, sizeof(imp->imp_conn_cnt)); imp->imp_conn_cnt = 0;
spin_unlock_irqrestore(&imp->imp_lock, flags); spin_unlock_irqrestore(&imp->imp_lock, flags);
RETURN(rc); RETURN(rc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment