]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
block: move internal_tag to same cache line as tag
authorJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 19:34:41 +0000 (12:34 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 21:00:50 +0000 (14:00 -0700)
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>
include/linux/blkdev.h

index 1e947e725528edf4d8fc0536633597b85d430460..11f7a8e86a8907bf9adcbf0f29c3adf97d8c04c5 100644 (file)
@@ -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;