Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44840
b: refs/heads/master
c: 2985259
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Dec 19, 2006
1 parent 17b1774 commit e58ecf5
Show file tree
Hide file tree
Showing 3 changed files with 3 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: a52de245ef0b6217a56fb2472ff65c3a196cafd5
refs/heads/master: 2985259b0e3928d4cd0723ac5aad0d1190ab7717
6 changes: 2 additions & 4 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2350,12 +2350,12 @@ static int __blk_rq_map_user(request_queue_t *q, struct request *rq,
else
bio = bio_copy_user(q, uaddr, len, reading);

if (IS_ERR(bio)) {
if (IS_ERR(bio))
return PTR_ERR(bio);
}

orig_bio = bio;
blk_queue_bounce(q, &bio);

/*
* We link the bounce buffer in and could have to traverse it
* later so we have to get a ref to prevent it from being freed
Expand All @@ -2379,8 +2379,6 @@ static int __blk_rq_map_user(request_queue_t *q, struct request *rq,
rq->biotail->bi_next = bio;
rq->biotail = bio;

rq->nr_sectors += bio_sectors(bio);
rq->hard_nr_sectors = rq->nr_sectors;
rq->data_len += bio->bi_size;
}
spin_unlock_irq(q->queue_lock);
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ static int scsi_merge_bio(struct request *rq, struct bio *bio)
else {
rq->biotail->bi_next = bio;
rq->biotail = bio;
rq->hard_nr_sectors += bio_sectors(bio);
rq->nr_sectors = rq->hard_nr_sectors;
}

return 0;
Expand Down

0 comments on commit e58ecf5

Please sign in to comment.