Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110457
b: refs/heads/master
c: 766ca44
h: refs/heads/master
i:
  110455: 77b22a0
v: v3
  • Loading branch information
Fernando Luis Vázquez Cao authored and Jens Axboe committed Oct 9, 2008
1 parent 751c943 commit 4ce1420
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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: 1a8e2bddd5c29008f311613e75925fecbf522c5b
refs/heads/master: 766ca4428d1239a970926856c447310c9c191af2
4 changes: 2 additions & 2 deletions trunk/drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ static bool do_req(struct request_queue *q, struct virtio_blk *vblk,
if (blk_fs_request(vbr->req)) {
vbr->out_hdr.type = 0;
vbr->out_hdr.sector = vbr->req->sector;
vbr->out_hdr.ioprio = vbr->req->ioprio;
vbr->out_hdr.ioprio = req_get_ioprio(vbr->req);
} else if (blk_pc_request(vbr->req)) {
vbr->out_hdr.type = VIRTIO_BLK_T_SCSI_CMD;
vbr->out_hdr.sector = 0;
vbr->out_hdr.ioprio = vbr->req->ioprio;
vbr->out_hdr.ioprio = req_get_ioprio(vbr->req);
} else {
/* We don't put anything else in the queue. */
BUG();
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ struct request {
struct request *next_rq;
};

static inline unsigned short req_get_ioprio(struct request *req)
{
return req->ioprio;
}

/*
* State information carried for REQ_TYPE_PM_SUSPEND and REQ_TYPE_PM_RESUME
* requests. Some step values could eventually be made generic.
Expand Down

0 comments on commit 4ce1420

Please sign in to comment.