Whamcloud - gitweb
LU-7774 lnet: issue in the offset in hash table 22/18422/2
authorAlyona Romanenko <alyona.romanenko@seagate.com>
Thu, 11 Feb 2016 21:37:17 +0000 (22:37 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 13 Feb 2016 03:27:35 +0000 (03:27 +0000)
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 <alyona.romanenko@seagate.com>
Change-Id: Ib45539ade0e3ed127d82448333da8f91b3146291
Reviewed-on: http://review.whamcloud.com/18422
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/lnet/lib-ptl.c

index c89e013..bc9ef29 100644 (file)
@@ -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];
        }
 }