aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-11-18 18:25:51 +0000
committerMark Johnston <markj@FreeBSD.org>2019-11-18 18:25:51 +0000
commitfe6d5344c248e4be5e806f25e4d7facfcd1bb2ed (patch)
treeb07d7945293620bd4335ff125e1c7ebbbfacb1c1 /cddl/contrib/opensolaris/cmd
parent3a2ba9974d5bda92d34ba09c10d4253c4fd535fb (diff)
downloadsrc-fe6d5344c248e4be5e806f25e4d7facfcd1bb2ed.tar.gz
src-fe6d5344c248e4be5e806f25e4d7facfcd1bb2ed.zip
Group per-domain reservation data in the same structure.
We currently have the per-domain partially populated reservation queues and the per-domain queue locks. Define a new per-domain padded structure to contain both of them. This puts the queue fields and lock in the same cache line and avoids the false sharing within the old queue array. Also fix field packing in the reservation structure. In many places we assume that a domain index fits in 8 bits, so we can do the same there as well. This reduces the size of the structure by 8 bytes. Update some comments while here. No functional change intended. Reviewed by: dougm, kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22391
Notes
Notes: svn path=/head/; revision=354821
Diffstat (limited to 'cddl/contrib/opensolaris/cmd')
0 files changed, 0 insertions, 0 deletions