Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e13006
)
use assignment instead of memset to clear the conn_cnt.
author
rread
<rread>
Mon, 12 Jul 2004 19:50:14 +0000
(19:50 +0000)
committer
rread
<rread>
Mon, 12 Jul 2004 19:50:14 +0000
(19:50 +0000)
lustre/ptlrpc/import.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/import.c
b/lustre/ptlrpc/import.c
index
7e471b0
..
cf5e0be
100644
(file)
--- a/
lustre/ptlrpc/import.c
+++ b/
lustre/ptlrpc/import.c
@@
-630,7
+630,7
@@
int ptlrpc_disconnect_import(struct obd_import *imp)
out:
IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_CLOSED);
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);
RETURN(rc);