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:
14a2875
)
Don't oops if there is no recovd for a connection. Mike needs to confirm if
author
adilger
<adilger>
Sun, 8 Sep 2002 19:39:30 +0000
(19:39 +0000)
committer
adilger
<adilger>
Sun, 8 Sep 2002 19:39:30 +0000
(19:39 +0000)
that is wrong (to not have a recovd), or if this fix is correct.
lustre/ptlrpc/recovd.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/recovd.c
b/lustre/ptlrpc/recovd.c
index
476c285
..
3f10733
100644
(file)
--- a/
lustre/ptlrpc/recovd.c
+++ b/
lustre/ptlrpc/recovd.c
@@
-42,6
+42,11
@@
void recovd_conn_fail(struct ptlrpc_connection *conn)
struct recovd_obd *recovd = rd->rd_recovd;
ENTRY;
+ if (!recovd) {
+ CERROR("no recovd for connection %p\n", conn);
+ return;
+ }
+
spin_lock(&recovd->recovd_lock);
list_del(&rd->rd_managed_chain);
list_add_tail(&rd->rd_managed_chain, &recovd->recovd_troubled_items);