diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-04-29 03:54:35 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-29 08:48:54 -0400 |
commit | 4917fa292558593d36b2880977ea206f7727dbe5 (patch) | |
tree | 5ef03fba3ca3f3b1f615e9d558f7138619787d3a /drivers/block/ps3disk.c | |
parent | 6f6a036e6e061563efecb61505fc4cc3ca415f80 (diff) |
block: no need to initialize rq->cmd in prepare_flush_fn hook
The block layer initializes rq->cmd (queue_flush calls rq_init) so
prepare_flush_fn hooks don't need to do that.
The purpose of this patch is to remove sizeof(rq->cmd), as a
preparation for large command support, which changes rq->cmd from the
static array to a pointer. sizeof(rq->cmd) will not make sense.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/ps3disk.c')
-rw-r--r-- | drivers/block/ps3disk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/ps3disk.c b/drivers/block/ps3disk.c index 78e9ea73a31a..d797e209951d 100644 --- a/drivers/block/ps3disk.c +++ b/drivers/block/ps3disk.c | |||
@@ -405,7 +405,6 @@ static void ps3disk_prepare_flush(struct request_queue *q, struct request *req) | |||
405 | 405 | ||
406 | dev_dbg(&dev->sbd.core, "%s:%u\n", __func__, __LINE__); | 406 | dev_dbg(&dev->sbd.core, "%s:%u\n", __func__, __LINE__); |
407 | 407 | ||
408 | memset(req->cmd, 0, sizeof(req->cmd)); | ||
409 | req->cmd_type = REQ_TYPE_FLUSH; | 408 | req->cmd_type = REQ_TYPE_FLUSH; |
410 | } | 409 | } |
411 | 410 | ||