diff options
| -rw-r--r-- | drivers/block/xen-blkfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index c852ed3c01d5..1799bba74390 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
| @@ -111,7 +111,7 @@ struct blk_shadow { | |||
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | struct blkif_req { | 113 | struct blkif_req { |
| 114 | int error; | 114 | blk_status_t error; |
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | static inline struct blkif_req *blkif_req(struct request *rq) | 117 | static inline struct blkif_req *blkif_req(struct request *rq) |
| @@ -1616,7 +1616,7 @@ static irqreturn_t blkif_interrupt(int irq, void *dev_id) | |||
| 1616 | if (unlikely(bret->status == BLKIF_RSP_EOPNOTSUPP)) { | 1616 | if (unlikely(bret->status == BLKIF_RSP_EOPNOTSUPP)) { |
| 1617 | printk(KERN_WARNING "blkfront: %s: %s op failed\n", | 1617 | printk(KERN_WARNING "blkfront: %s: %s op failed\n", |
| 1618 | info->gd->disk_name, op_name(bret->operation)); | 1618 | info->gd->disk_name, op_name(bret->operation)); |
| 1619 | blkif_req(req)->error = -EOPNOTSUPP; | 1619 | blkif_req(req)->error = BLK_STS_NOTSUPP; |
| 1620 | } | 1620 | } |
| 1621 | if (unlikely(bret->status == BLKIF_RSP_ERROR && | 1621 | if (unlikely(bret->status == BLKIF_RSP_ERROR && |
| 1622 | rinfo->shadow[id].req.u.rw.nr_segments == 0)) { | 1622 | rinfo->shadow[id].req.u.rw.nr_segments == 0)) { |
