]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Avoid alignment hole in struct lm_lockname
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 6 Mar 2017 17:58:42 +0000 (12:58 -0500)
committerBob Peterson <rpeterso@redhat.com>
Wed, 15 Mar 2017 14:06:07 +0000 (10:06 -0400)
commit0a373cbef7e89d7561217adea18482831c2e4c6d
tree30fcea8bf23bdcfb8a4edc082900c6eed2903900
parentbf3d7626020891b129b8f8dfe48aafa69a125a93
gfs2: Avoid alignment hole in struct lm_lockname

Commit d86b3a1ecc switches to using rhashtables for glocks, hashing over
the entire struct lm_lockname instead of its individual fields.  On some
architectures, struct lm_lockname contains a hole of uninitialized
memory due to alignment rules, which now leads to incorrect hash values.
Get rid of that hole.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
CC: <stable@vger.kernel.org> #v4.3+
fs/gfs2/incore.h