aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2011-11-05 03:36:21 -0400
committerJens Axboe <axboe@kernel.dk>2011-11-05 03:36:21 -0400
commita71f483d7957c74368a76a3a88ae54d524fa3b49 (patch)
tree62d85db2448d469d2132339d828cd8dcfd9a203c
parent0e838c624e04490985162a1b00d7aa1956c8834e (diff)
mtip32xx: update to new ->make_request() API
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index f7a33211a81a..880facbb0534 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -2984,10 +2984,8 @@ static const struct block_device_operations mtip_block_ops = {
2984 * the driver data structure. 2984 * the driver data structure.
2985 * @bio Pointer to the BIO. 2985 * @bio Pointer to the BIO.
2986 * 2986 *
2987 * return value
2988 * 0
2989 */ 2987 */
2990static int mtip_make_request(struct request_queue *queue, struct bio *bio) 2988static void mtip_make_request(struct request_queue *queue, struct bio *bio)
2991{ 2989{
2992 struct driver_data *dd = queue->queuedata; 2990 struct driver_data *dd = queue->queuedata;
2993 struct scatterlist *sg; 2991 struct scatterlist *sg;
@@ -2998,12 +2996,12 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
2998 if (unlikely(!bio_has_data(bio))) { 2996 if (unlikely(!bio_has_data(bio))) {
2999 blk_queue_flush(queue, 0); 2997 blk_queue_flush(queue, 0);
3000 bio_endio(bio, 0); 2998 bio_endio(bio, 0);
3001 return 0; 2999 return;
3002 } 3000 }
3003 3001
3004 if (unlikely(atomic_read(&dd->eh_active))) { 3002 if (unlikely(atomic_read(&dd->eh_active))) {
3005 bio_endio(bio, -EBUSY); 3003 bio_endio(bio, -EBUSY);
3006 return 0; 3004 return;
3007 } 3005 }
3008 3006
3009 sg = mtip_hw_get_scatterlist(dd, &tag); 3007 sg = mtip_hw_get_scatterlist(dd, &tag);
@@ -3015,7 +3013,7 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
3015 "Maximum number of SGL entries exceeded"); 3013 "Maximum number of SGL entries exceeded");
3016 bio_io_error(bio); 3014 bio_io_error(bio);
3017 mtip_hw_release_scatterlist(dd, tag); 3015 mtip_hw_release_scatterlist(dd, tag);
3018 return 0; 3016 return;
3019 } 3017 }
3020 3018
3021 /* Create the scatter list for this bio. */ 3019 /* Create the scatter list for this bio. */
@@ -3036,11 +3034,8 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
3036 bio, 3034 bio,
3037 bio->bi_rw & REQ_FLUSH, 3035 bio->bi_rw & REQ_FLUSH,
3038 bio_data_dir(bio)); 3036 bio_data_dir(bio));
3039 } else { 3037 } else
3040 bio_io_error(bio); 3038 bio_io_error(bio);
3041 }
3042
3043 return 0;
3044} 3039}
3045 3040
3046/* 3041/*