Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77617
b: refs/heads/master
c: f530f03
h: refs/heads/master
i:
  77615: 54cf5e3
v: v3
  • Loading branch information
Kiyoshi Ueda authored and Jens Axboe committed Jan 28, 2008
1 parent 5300756 commit 034613b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: b2aec24ea4c5836f9b3cbc7dca51f0ae639865ed
refs/heads/master: f530f036378421fb0b59bb829a8097a50bca79e2
10 changes: 4 additions & 6 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static irqreturn_t blkif_interrupt(int irq, void *dev_id)
RING_IDX i, rp;
unsigned long flags;
struct blkfront_info *info = (struct blkfront_info *)dev_id;
int uptodate;
int error;

spin_lock_irqsave(&blkif_io_lock, flags);

Expand All @@ -477,13 +477,13 @@ static irqreturn_t blkif_interrupt(int irq, void *dev_id)

add_id_to_freelist(info, id);

uptodate = (bret->status == BLKIF_RSP_OKAY);
error = (bret->status == BLKIF_RSP_OKAY) ? 0 : -EIO;
switch (bret->operation) {
case BLKIF_OP_WRITE_BARRIER:
if (unlikely(bret->status == BLKIF_RSP_EOPNOTSUPP)) {
printk(KERN_WARNING "blkfront: %s: write barrier op failed\n",
info->gd->disk_name);
uptodate = -EOPNOTSUPP;
error = -EOPNOTSUPP;
info->feature_barrier = 0;
xlvbd_barrier(info);
}
Expand All @@ -494,10 +494,8 @@ static irqreturn_t blkif_interrupt(int irq, void *dev_id)
dev_dbg(&info->xbdev->dev, "Bad return from blkdev data "
"request: %x\n", bret->status);

ret = end_that_request_first(req, uptodate,
req->hard_nr_sectors);
ret = __blk_end_request(req, error, blk_rq_bytes(req));
BUG_ON(ret);
end_that_request_last(req, uptodate);
break;
default:
BUG();
Expand Down

0 comments on commit 034613b

Please sign in to comment.