diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-15 16:55:05 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 05:55:52 -0600 |
commit | 6155631a0c3b7ca795a0edb44894e58dc3e3d798 (patch) | |
tree | 77ae4a338aafacca741412f604738bf4f065024f /block | |
parent | e028f167eca5fc56938e6c1680d40eed0bc39e80 (diff) | |
download | linux-6155631a0c3b7ca795a0edb44894e58dc3e3d798.tar.gz linux-6155631a0c3b7ca795a0edb44894e58dc3e3d798.tar.bz2 linux-6155631a0c3b7ca795a0edb44894e58dc3e3d798.zip |
block: align blkdev_dio inlined bio to a cacheline
We get all sorts of unreliable and funky results since the bio is
designed to align on a cacheline, which it does not when inlined like
this.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/fops.c b/block/fops.c index 2c43e493e37c..21d25ee0e4bf 100644 --- a/block/fops.c +++ b/block/fops.c @@ -137,7 +137,7 @@ struct blkdev_dio { size_t size; atomic_t ref; unsigned int flags; - struct bio bio; + struct bio bio ____cacheline_aligned_in_smp; }; static struct bio_set blkdev_dio_pool; |