summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>2008-10-01 10:12:15 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 08:56:20 +0200
commit2a9df5055a99df25533daf4041fdb99f0ed3463c (patch)
tree48a62d02ee13c12fdbf99e3de0a8bbcbc23bc4c2 /drivers
parent8316982ac06d7d8875dc8738efbb030791dc33bb (diff)
downloadlinux-2a9df5055a99df25533daf4041fdb99f0ed3463c.tar.gz
linux-2a9df5055a99df25533daf4041fdb99f0ed3463c.tar.bz2
linux-2a9df5055a99df25533daf4041fdb99f0ed3463c.zip
memstick: change to use __blk_end_request()
This patch converts memstick to use __blk_end_request() directly so that end_{queued|dequeued}_request() can be removed. Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> Cc: Alex Dubov <oakad@yahoo.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/memstick/core/mspro_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
index 82bf649ef138..6e291bf8237a 100644
--- a/drivers/memstick/core/mspro_block.c
+++ b/drivers/memstick/core/mspro_block.c
@@ -828,7 +828,7 @@ static void mspro_block_submit_req(struct request_queue *q)
if (msb->eject) {
while ((req = elv_next_request(q)) != NULL)
- end_queued_request(req, -ENODEV);
+ __blk_end_request(req, -ENODEV, blk_rq_bytes(req));
return;
}