aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorMike Miller <mike.miller@hp.com>2006-12-18 05:00:14 -0500
committerJens Axboe <jens.axboe@oracle.com>2006-12-18 05:00:14 -0500
commita52de245ef0b6217a56fb2472ff65c3a196cafd5 (patch)
tree937ef119cfaa7ee69e1b11dce9830045992271d9 /drivers/block
parent89f97ad1894ab518b05b798906085fb3d1b2d00f (diff)
[PATCH] cciss: fix XFER_READ/XFER_WRITE in do_cciss_request
This patch fixes a stupid bug. Sometime during the 2tb enhancement I ended up replacing the macros XFER_READ and XFER_WRITE with h->cciss_read and h->cciss_write respectively. It seemed to work somehow at least on x86_64 and ia64. I don't know how. But people started complaining about command timeouts on older controllers like the 64xx series and only on ia32. This resolves the issue reproduced in our lab. Please consider this for inclusion. Thanks, mikem Signed-off-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/cciss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 67a6d4a9343a..9d2ddb209343 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -2492,7 +2492,7 @@ static void do_cciss_request(request_queue_t *q)
2492 c->Request.Type.Type = TYPE_CMD; // It is a command. 2492 c->Request.Type.Type = TYPE_CMD; // It is a command.
2493 c->Request.Type.Attribute = ATTR_SIMPLE; 2493 c->Request.Type.Attribute = ATTR_SIMPLE;
2494 c->Request.Type.Direction = 2494 c->Request.Type.Direction =
2495 (rq_data_dir(creq) == READ) ? h->cciss_read : h->cciss_write; 2495 (rq_data_dir(creq) == READ) ? XFER_READ : XFER_WRITE;
2496 c->Request.Timeout = 0; // Don't time out 2496 c->Request.Timeout = 0; // Don't time out
2497 c->Request.CDB[0] = 2497 c->Request.CDB[0] =
2498 (rq_data_dir(creq) == READ) ? h->cciss_read : h->cciss_write; 2498 (rq_data_dir(creq) == READ) ? h->cciss_read : h->cciss_write;