summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-01-31 12:34:41 -0700
committerJens Axboe <axboe@fb.com>2017-01-31 14:00:50 -0700
commitd486f1f204382557b5fbcb3ddbb5845cd4ba4e2c (patch)
treeb6568419a34606e10d4fd00a50d38012cbbe4d67 /include/linux/blkdev.h
parentaebf526b53aea164508730427597d45f3e06b376 (diff)
downloadlwn-d486f1f204382557b5fbcb3ddbb5845cd4ba4e2c.tar.gz
lwn-d486f1f204382557b5fbcb3ddbb5845cd4ba4e2c.zip
block: move internal_tag to same cache line as tag
Since we removed cmd_type, we now have a hole in the struct. Move the internal_tag member to the same cacheline as tag, since we use them at the same time. This doesn't fix the hole, just moves it elsewhere. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 1e947e725528..11f7a8e86a89 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -138,6 +138,9 @@ struct request {
int cpu;
unsigned int cmd_flags; /* op and common flags */
req_flags_t rq_flags;
+
+ int internal_tag;
+
unsigned long atomic_flags;
/* the following two fields are internal, NEVER access directly */
@@ -209,8 +212,6 @@ struct request {
unsigned short ioprio;
- int internal_tag;
-
void *special; /* opaque pointer available for LLD use */
int errors;