Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77613
b: refs/heads/master
c: f01ab25
h: refs/heads/master
i:
  77611: 5521881
v: v3
  • Loading branch information
Kiyoshi Ueda authored and Jens Axboe committed Jan 28, 2008
1 parent 3faa7a6 commit 0bc4fdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 097c94a4e8bde978c8d12683d9a34048e9139e4b
refs/heads/master: f01ab252cbfc039e4f16db9aed272d11d13525d1
12 changes: 4 additions & 8 deletions trunk/drivers/block/ps3disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static irqreturn_t ps3disk_interrupt(int irq, void *data)
struct ps3_storage_device *dev = data;
struct ps3disk_private *priv;
struct request *req;
int res, read, uptodate;
int res, read, error;
u64 tag, status;
unsigned long num_sectors;
const char *op;
Expand Down Expand Up @@ -270,21 +270,17 @@ static irqreturn_t ps3disk_interrupt(int irq, void *data)
if (status) {
dev_dbg(&dev->sbd.core, "%s:%u: %s failed 0x%lx\n", __func__,
__LINE__, op, status);
uptodate = 0;
error = -EIO;
} else {
dev_dbg(&dev->sbd.core, "%s:%u: %s completed\n", __func__,
__LINE__, op);
uptodate = 1;
error = 0;
if (read)
ps3disk_scatter_gather(dev, req, 0);
}

spin_lock(&priv->lock);
if (!end_that_request_first(req, uptodate, num_sectors)) {
add_disk_randomness(req->rq_disk);
blkdev_dequeue_request(req);
end_that_request_last(req, uptodate);
}
__blk_end_request(req, error, num_sectors << 9);
priv->req = NULL;
ps3disk_do_request(dev, priv->queue);
spin_unlock(&priv->lock);
Expand Down

0 comments on commit 0bc4fdd

Please sign in to comment.