diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-11-28 20:30:26 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-11-28 12:11:08 -0700 |
commit | fad907cffd4bde7384812cf32fcf69becab805cc (patch) | |
tree | b21add28c86b3dcb1f1377e2be89685e8646397a /drivers/pci/controller/dwc/pcie-uniphier.c | |
parent | bb6cc253861bd5a7cf8439e2118659696df9619f (diff) |
block: move .bd_inode into 1st cacheline of block_device
The .bd_inode field of block_device is used in IO fast path of
blkdev_write_iter() and blkdev_llseek(), so it is more efficient to keep
it into the 1st cacheline.
.bd_openers is only touched in open()/close(), and .bd_size_lock is only
for updating bdev capacity, which is in slow path too.
So swap .bd_inode layout with .bd_openers & .bd_size_lock to move
.bd_inode into the 1st cache line.
Cc: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231128123027.971610-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-uniphier.c')
0 files changed, 0 insertions, 0 deletions