Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146990
b: refs/heads/master
c: cd4c34e
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Apr 28, 2009
1 parent c14efd7 commit bfbb78d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 5b5c5d12b91cb6b2a2967f06aef35d59008dc2e7
refs/heads/master: cd4c34ebec155e5c10f897d9bebf618248121e70
5 changes: 1 addition & 4 deletions trunk/drivers/block/ps3disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ static irqreturn_t ps3disk_interrupt(int irq, void *data)
struct request *req;
int res, read, error;
u64 tag, status;
unsigned long num_sectors;
const char *op;

res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status);
Expand Down Expand Up @@ -261,11 +260,9 @@ static irqreturn_t ps3disk_interrupt(int irq, void *data)
if (req->cmd_type == REQ_TYPE_LINUX_BLOCK &&
req->cmd[0] == REQ_LB_OP_FLUSH) {
read = 0;
num_sectors = req->hard_cur_sectors;
op = "flush";
} else {
read = !rq_data_dir(req);
num_sectors = req->nr_sectors;
op = read ? "read" : "write";
}
if (status) {
Expand All @@ -281,7 +278,7 @@ static irqreturn_t ps3disk_interrupt(int irq, void *data)
}

spin_lock(&priv->lock);
__blk_end_request(req, error, num_sectors << 9);
__blk_end_request_all(req, error);
priv->req = NULL;
ps3disk_do_request(dev, priv->queue);
spin_unlock(&priv->lock);
Expand Down

0 comments on commit bfbb78d

Please sign in to comment.