[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1242127787-29842-2-git-send-email-fujita.tomonori@lab.ntt.co.jp>
Date: Tue, 12 May 2009 20:29:46 +0900
From: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
To: jens.axboe@...cle.com
Cc: tj@...nel.org, linux-kernel@...r.kernel.org,
benh@...nel.crashing.org,
FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
Subject: [PATCH] swim3: use blk_end_request_all when we hit the maximum retry count
Looks like we need to use blk_end_request_all() when we hit the maximum
retry count.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
---
drivers/block/swim3.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index 80df93e..116d169 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -737,7 +737,8 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id)
printk("swim3: error %sing block %ld (err=%x)\n",
rq_data_dir(fd_req) == WRITE? "writ": "read",
(long)blk_rq_pos(fd_req), err);
- swim3_end_request_cur(-EIO);
+ blk_end_request_all(fd_req, -EIO);
+ fd_req = NULL;
fs->state = idle;
}
} else {
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists