Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3556 osd-ldiskfs: remove dependency on mdd module
[fs/lustre-release.git]
/
lnet
/
lnet
/
lib-me.c
diff --git
a/lnet/lnet/lib-me.c
b/lnet/lnet/lib-me.c
index
f203e30
..
63d457a
100644
(file)
--- a/
lnet/lnet/lib-me.c
+++ b/
lnet/lnet/lib-me.c
@@
-26,6
+26,8
@@
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-107,8
+109,12
@@
LNetMEAttach(unsigned int portal,
lnet_res_lh_initialize(the_lnet.ln_me_containers[mtable->mt_cpt],
&me->me_lh);
lnet_res_lh_initialize(the_lnet.ln_me_containers[mtable->mt_cpt],
&me->me_lh);
- head = lnet_mt_match_head(mtable, match_id, match_bits);
+ if (ignore_bits != 0)
+ head = &mtable->mt_mhash[LNET_MT_HASH_IGNORE];
+ else
+ head = lnet_mt_match_head(mtable, match_id, match_bits);
+ me->me_pos = head - &mtable->mt_mhash[0];
if (pos == LNET_INS_AFTER || pos == LNET_INS_LOCAL)
cfs_list_add_tail(&me->me_list, head);
else
if (pos == LNET_INS_AFTER || pos == LNET_INS_LOCAL)
cfs_list_add_tail(&me->me_list, head);
else
@@
-182,6
+188,7
@@
LNetMEInsert(lnet_handle_me_t current_meh,
return -EPERM;
}
return -EPERM;
}
+ new_me->me_pos = current_me->me_pos;
new_me->me_portal = current_me->me_portal;
new_me->me_match_id = match_id;
new_me->me_match_bits = match_bits;
new_me->me_portal = current_me->me_portal;
new_me->me_match_id = match_id;
new_me->me_match_bits = match_bits;