aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xsysace.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xsysace.c')
-rw-r--r--drivers/block/xsysace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
index 4aecf5dc6a93..b1e1d7e5ab1e 100644
--- a/drivers/block/xsysace.c
+++ b/drivers/block/xsysace.c
@@ -466,7 +466,7 @@ struct request *ace_get_next_request(struct request_queue * q)
466 while ((req = elv_next_request(q)) != NULL) { 466 while ((req = elv_next_request(q)) != NULL) {
467 if (blk_fs_request(req)) 467 if (blk_fs_request(req))
468 break; 468 break;
469 end_request(req, 0); 469 __blk_end_request_cur(req, -EIO);
470 } 470 }
471 return req; 471 return req;
472} 472}
@@ -494,7 +494,7 @@ static void ace_fsm_dostate(struct ace_device *ace)
494 494
495 /* Drop all pending requests */ 495 /* Drop all pending requests */
496 while ((req = elv_next_request(ace->queue)) != NULL) 496 while ((req = elv_next_request(ace->queue)) != NULL)
497 end_request(req, 0); 497 __blk_end_request_cur(req, -EIO);
498 498
499 /* Drop back to IDLE state and notify waiters */ 499 /* Drop back to IDLE state and notify waiters */
500 ace->fsm_state = ACE_FSM_STATE_IDLE; 500 ace->fsm_state = ACE_FSM_STATE_IDLE;