diff options
-rw-r--r-- | block/blk-core.c | 1 | ||||
-rw-r--r-- | include/linux/blkdev.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index e6fdb288be65..5d09f8c56024 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -117,6 +117,7 @@ void blk_rq_init(struct request_queue *q, struct request *rq) | |||
117 | rq->sector = rq->hard_sector = (sector_t) -1; | 117 | rq->sector = rq->hard_sector = (sector_t) -1; |
118 | INIT_HLIST_NODE(&rq->hash); | 118 | INIT_HLIST_NODE(&rq->hash); |
119 | RB_CLEAR_NODE(&rq->rb_node); | 119 | RB_CLEAR_NODE(&rq->rb_node); |
120 | rq->cmd = rq->__cmd; | ||
120 | rq->tag = -1; | 121 | rq->tag = -1; |
121 | rq->ref_count = 1; | 122 | rq->ref_count = 1; |
122 | } | 123 | } |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d17032c347c0..08df1ea8bac4 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -215,8 +215,9 @@ struct request { | |||
215 | /* | 215 | /* |
216 | * when request is used as a packet command carrier | 216 | * when request is used as a packet command carrier |
217 | */ | 217 | */ |
218 | unsigned int cmd_len; | 218 | unsigned short cmd_len; |
219 | unsigned char cmd[BLK_MAX_CDB]; | 219 | unsigned char __cmd[BLK_MAX_CDB]; |
220 | unsigned char *cmd; | ||
220 | 221 | ||
221 | unsigned int data_len; | 222 | unsigned int data_len; |
222 | unsigned int extra_len; /* length of alignment and padding */ | 223 | unsigned int extra_len; /* length of alignment and padding */ |