diff options
author | Alexander Motin <mav@FreeBSD.org> | 2019-06-14 17:09:39 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2019-06-14 17:09:39 +0000 |
commit | 284e53a4012a757af60cb4c81102fbd4681fec35 (patch) | |
tree | 6ad4537eca88e7cf4b5daf240a288b1aedb36bbe /sys/cddl/contrib/opensolaris/uts | |
parent | e924cb6ff9a384e9d7b7c58e3cfc5eba64889405 (diff) | |
download | src-284e53a4012a757af60cb4c81102fbd4681fec35.tar.gz src-284e53a4012a757af60cb4c81102fbd4681fec35.zip |
Properly align struct multilist_sublist to cache line.
Manual Illumos alignment does not fit us due to different kmutex_t size.
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Notes
Notes:
svn path=/head/; revision=349035
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h index a2031da77daa..7f386fb7c3be 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h @@ -44,11 +44,10 @@ struct multilist_sublist { */ list_t mls_list; /* - * Pad to cache line (64 bytes), in an effort to try and prevent - * cache line contention. + * Pad to cache line, in an effort to try and prevent cache line + * contention. */ - uint8_t mls_pad[24]; -}; +} __aligned(CACHE_LINE_SIZE); struct multilist { /* |