From: Alyona Romanenko Date: Thu, 11 Feb 2016 21:37:17 +0000 (+0100) Subject: LU-7774 lnet: issue in the offset in hash table X-Git-Tag: 2.8.51~74 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=afe77469c74b5bc8d6b1f1867976980f3d2f823b;p=fs%2Flustre-release.git 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 --- 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]; } }