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:
f7d57d3
)
b=18428
author
vs
<vs>
Tue, 24 Feb 2009 12:51:45 +0000
(12:51 +0000)
committer
vs
<vs>
Tue, 24 Feb 2009 12:51:45 +0000
(12:51 +0000)
i=shadow,tappro,rread
do not send requests to inactive targets
lustre/lov/lov_obd.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_obd.c
b/lustre/lov/lov_obd.c
index
88369ec
..
bdbe9e6
100644
(file)
--- a/
lustre/lov/lov_obd.c
+++ b/
lustre/lov/lov_obd.c
@@
-492,8
+492,11
@@
static int lov_notify(struct obd_device *obd, struct obd_device *watched,
int i;
lov_getref(obd);
for (i = 0; i < lov->desc.ld_tgt_count; i++) {
- if (!lov->lov_tgts[i])
- continue;
+ /* don't send sync event if target not
+ * connected/activated */
+ if (!lov->lov_tgts[i] ||
+ !lov->lov_tgts[i]->ltd_active)
+ continue;
if ((ev == OBD_NOTIFY_SYNC) ||
(ev == OBD_NOTIFY_SYNC_NONBLOCK))