From: Jens Axboe Date: Fri, 15 Oct 2021 22:55:05 +0000 (-0600) Subject: block: align blkdev_dio inlined bio to a cacheline X-Git-Tag: v6.6.17~8868^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6155631a0c3b7ca795a0edb44894e58dc3e3d798;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/fops.c b/block/fops.c index 2c43e49..21d25ee 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;