Skip to content

Commit 2a9df50

Browse files
Kiyoshi UedaJens Axboe
authored andcommitted
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>
1 parent 8316982 commit 2a9df50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/memstick/core/mspro_block.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ static void mspro_block_submit_req(struct request_queue *q)
828828

829829
if (msb->eject) {
830830
while ((req = elv_next_request(q)) != NULL)
831-
end_queued_request(req, -ENODEV);
831+
__blk_end_request(req, -ENODEV, blk_rq_bytes(req));
832832

833833
return;
834834
}

0 commit comments

Comments
 (0)