Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285143
b: refs/heads/master
c: a71f483
h: refs/heads/master
i:
  285141: 7e0db4b
  285139: f45e668
  285135: 8c72105
v: v3
  • Loading branch information
Jens Axboe committed Nov 5, 2011
1 parent 759b2c2 commit e5203b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e838c624e04490985162a1b00d7aa1956c8834e
refs/heads/master: a71f483d7957c74368a76a3a88ae54d524fa3b49
15 changes: 5 additions & 10 deletions trunk/drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2984,10 +2984,8 @@ static const struct block_device_operations mtip_block_ops = {
* the driver data structure.
* @bio Pointer to the BIO.
*
* return value
* 0
*/
static int mtip_make_request(struct request_queue *queue, struct bio *bio)
static void mtip_make_request(struct request_queue *queue, struct bio *bio)
{
struct driver_data *dd = queue->queuedata;
struct scatterlist *sg;
Expand All @@ -2998,12 +2996,12 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
if (unlikely(!bio_has_data(bio))) {
blk_queue_flush(queue, 0);
bio_endio(bio, 0);
return 0;
return;
}

if (unlikely(atomic_read(&dd->eh_active))) {
bio_endio(bio, -EBUSY);
return 0;
return;
}

sg = mtip_hw_get_scatterlist(dd, &tag);
Expand All @@ -3015,7 +3013,7 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
"Maximum number of SGL entries exceeded");
bio_io_error(bio);
mtip_hw_release_scatterlist(dd, tag);
return 0;
return;
}

/* Create the scatter list for this bio. */
Expand All @@ -3036,11 +3034,8 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
bio,
bio->bi_rw & REQ_FLUSH,
bio_data_dir(bio));
} else {
} else
bio_io_error(bio);
}

return 0;
}

/*
Expand Down

0 comments on commit e5203b6

Please sign in to comment.