diff options
author | Jens Axboe <axboe@fb.com> | 2016-08-25 08:00:28 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-08-29 08:13:21 -0600 |
commit | 8d354f133e86dd03ea7885a91df398c55ff699ff (patch) | |
tree | 11049556188d8274f98553f924fda66f0754621e /block | |
parent | 27489a3c827b7eebba26eda0320bb0f100bef167 (diff) | |
download | linux-8d354f133e86dd03ea7885a91df398c55ff699ff.tar.gz linux-8d354f133e86dd03ea7885a91df398c55ff699ff.tar.bz2 linux-8d354f133e86dd03ea7885a91df398c55ff699ff.zip |
blk-mq: improve layout of blk_mq_hw_ctx
Various cache line optimizations:
- Move delay_work towards the end. It's huge, and we don't use it
a lot (only SCSI).
- Move the atomic state into the same cacheline as the the dispatch
list and lock.
- Rearrange a few members to pack it better.
- Shrink the max-order for dispatch accounting from 10 to 7. This
means that ->dispatched[] and ->run now take up their own
cacheline.
This shrinks struct blk_mq_hw_ctx down to 8 cachelines.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions