mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
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>
This commit is contained in:
parent
e028f167ec
commit
6155631a0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user