projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e028f16
)
block: align blkdev_dio inlined bio to a cacheline
author
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Oct 2021 22:55:05 +0000
(16:55 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 Oct 2021 11:55:52 +0000
(
05:55
-0600)
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>
block/fops.c
patch
|
blob
|
history
diff --git
a/block/fops.c
b/block/fops.c
index
2c43e49
..
21d25ee
100644
(file)
--- 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;