From afe77469c74b5bc8d6b1f1867976980f3d2f823b Mon Sep 17 00:00:00 2001 From: Alyona Romanenko Date: Thu, 11 Feb 2016 22:37:17 +0100 Subject: [PATCH] LU-7774 lnet: issue in the offset in hash table the offset in hash table is overflowed for no wildcard portal. The offset for no wildcard has been corrected as for wildcard in the LU-1622 Signed-off-by: Alyona Romanenko Change-Id: Ib45539ade0e3ed127d82448333da8f91b3146291 Reviewed-on: http://review.whamcloud.com/18422 Reviewed-by: Doug Oucharek Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lnet/lnet/lib-ptl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/lnet/lib-ptl.c b/lnet/lnet/lib-ptl.c index c89e013..bc9ef29 100644 --- a/lnet/lnet/lib-ptl.c +++ b/lnet/lnet/lib-ptl.c @@ -367,7 +367,7 @@ lnet_mt_match_head(struct lnet_match_table *mtable, LASSERT(lnet_ptl_is_unique(ptl)); hash = hash_long(hash, LNET_MT_HASH_BITS); - return &mtable->mt_mhash[hash]; + return &mtable->mt_mhash[hash & LNET_MT_HASH_MASK]; } } -- 1.8.3.1