diff options
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 40d03cf63f2e..178f459a50ed 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -627,7 +627,7 @@ static void ub_request_fn(struct request_queue *q) | |||
627 | struct ub_lun *lun = q->queuedata; | 627 | struct ub_lun *lun = q->queuedata; |
628 | struct request *rq; | 628 | struct request *rq; |
629 | 629 | ||
630 | while ((rq = elv_next_request(q)) != NULL) { | 630 | while ((rq = blk_peek_request(q)) != NULL) { |
631 | if (ub_request_fn_1(lun, rq) != 0) { | 631 | if (ub_request_fn_1(lun, rq) != 0) { |
632 | blk_stop_queue(q); | 632 | blk_stop_queue(q); |
633 | break; | 633 | break; |
@@ -643,13 +643,13 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq) | |||
643 | int n_elem; | 643 | int n_elem; |
644 | 644 | ||
645 | if (atomic_read(&sc->poison)) { | 645 | if (atomic_read(&sc->poison)) { |
646 | blkdev_dequeue_request(rq); | 646 | blk_start_request(rq); |
647 | ub_end_rq(rq, DID_NO_CONNECT << 16, blk_rq_bytes(rq)); | 647 | ub_end_rq(rq, DID_NO_CONNECT << 16, blk_rq_bytes(rq)); |
648 | return 0; | 648 | return 0; |
649 | } | 649 | } |
650 | 650 | ||
651 | if (lun->changed && !blk_pc_request(rq)) { | 651 | if (lun->changed && !blk_pc_request(rq)) { |
652 | blkdev_dequeue_request(rq); | 652 | blk_start_request(rq); |
653 | ub_end_rq(rq, SAM_STAT_CHECK_CONDITION, blk_rq_bytes(rq)); | 653 | ub_end_rq(rq, SAM_STAT_CHECK_CONDITION, blk_rq_bytes(rq)); |
654 | return 0; | 654 | return 0; |
655 | } | 655 | } |
@@ -660,7 +660,7 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq) | |||
660 | return -1; | 660 | return -1; |
661 | memset(cmd, 0, sizeof(struct ub_scsi_cmd)); | 661 | memset(cmd, 0, sizeof(struct ub_scsi_cmd)); |
662 | 662 | ||
663 | blkdev_dequeue_request(rq); | 663 | blk_start_request(rq); |
664 | 664 | ||
665 | urq = &lun->urq; | 665 | urq = &lun->urq; |
666 | memset(urq, 0, sizeof(struct ub_request)); | 666 | memset(urq, 0, sizeof(struct ub_request)); |