Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162549
b: refs/heads/master
c: 8cd9c29
h: refs/heads/master
i:
  162547: 48ed2c4
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 8b83027 commit 6b066f8
Show file tree
Hide file tree
Showing 2 changed files with 9 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: dbda83255cf6a12d06527131214c123ee7ae96b9
refs/heads/master: 8cd9c297a8ad1366789b934b0e4510c87beaf274
16 changes: 8 additions & 8 deletions trunk/drivers/staging/cowloop/cowloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,12 +967,12 @@ cowlo_request(request_queue_t *q)

DEBUGP(DCOW "cowloop - request function called....\n");

while((req = elv_next_request(q)) != NULL) {
while((req = blk_peek_request(q)) != NULL) {
DEBUGP(DCOW "cowloop - got next request\n");

if (! blk_fs_request(req)) {
/* this is not a normal file system request */
end_request(req, 0);
__blk_end_request_cur(req, -EIO);
continue;
}
cowdev = req->rq_disk->private_data;
Expand All @@ -988,7 +988,7 @@ cowlo_request(request_queue_t *q)
*/
if (!cowdev->pid) {
printk(KERN_ERR"cowloop - no thread available\n");
end_request(req, 0); /* request failed */
__blk_end_request_cur(req, -EIO); /* request failed */
cowdev->iobusy = 0;
continue;
}
Expand Down Expand Up @@ -1058,7 +1058,7 @@ cowlo_daemon(struct cowloop_device *cowdev)
*/
spin_lock_irq(&cowdev->rqlock);

end_request(cowdev->req, rv);
__blk_end_request_cur(cowdev->req, rv);
cowdev->iobusy = 0;

/*
Expand Down Expand Up @@ -1090,8 +1090,8 @@ cowlo_do_request(struct request *req)
/*
** calculate some variables which are needed later on
*/
len = req->current_nr_sectors << 9;
offset = (loff_t) req->sector << 9;
len = blk_rq_cur_sectors(req) << 9;
offset = (loff_t) blk_rq_pos(req) << 9;

DEBUGP(DCOW"cowloop - req cmd=%d offset=%lld len=%lu addr=%p\n",
*(req->cmd), offset, len, req->buffer);
Expand Down Expand Up @@ -1918,7 +1918,7 @@ cowlo_openpair(char *rdof, char *cowf, int autorecover, int minor)
return -EINVAL;
}

blk_queue_hardsect_size(cowdev->rqueue, cowdev->blocksz);
blk_queue_logical_block_size(cowdev->rqueue, cowdev->blocksz);
cowdev->gd->queue = cowdev->rqueue;

/*
Expand Down Expand Up @@ -2132,7 +2132,7 @@ cowlo_openrdo(struct cowloop_device *cowdev, char *rdof)


if (cowdev->belowq)
cowdev->blocksz = cowdev->belowq->hardsect_size;
cowdev->blocksz = queue_logical_block_size(cowdev->belowq);

if (cowdev->blocksz == 0)
cowdev->blocksz = BLOCK_SIZE; /* default 2^10 */
Expand Down

0 comments on commit 6b066f8

Please sign in to comment.