提交 d486f1f2 编写于 作者: J Jens Axboe

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: NJens Axboe <axboe@fb.com>
上级 aebf526b
...@@ -138,6 +138,9 @@ struct request { ...@@ -138,6 +138,9 @@ struct request {
int cpu; int cpu;
unsigned int cmd_flags; /* op and common flags */ unsigned int cmd_flags; /* op and common flags */
req_flags_t rq_flags; req_flags_t rq_flags;
int internal_tag;
unsigned long atomic_flags; unsigned long atomic_flags;
/* the following two fields are internal, NEVER access directly */ /* the following two fields are internal, NEVER access directly */
...@@ -209,8 +212,6 @@ struct request { ...@@ -209,8 +212,6 @@ struct request {
unsigned short ioprio; unsigned short ioprio;
int internal_tag;
void *special; /* opaque pointer available for LLD use */ void *special; /* opaque pointer available for LLD use */
int errors; int errors;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册