Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44842
b: refs/heads/master
c: 9c9381f
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Dec 19, 2006
1 parent 1e01132 commit 072bc44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 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: 1aa4f24fe96938cabe7a1e9da8bc3bfbd1dfe3fa
refs/heads/master: 9c9381f9425ab4d2f9f0458ae9525c18bc832f59
9 changes: 0 additions & 9 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2359,26 +2359,17 @@ static int __blk_rq_map_user(request_queue_t *q, struct request *rq,
*/
bio_get(bio);

/*
* for most (all? don't know of any) queues we could
* skip grabbing the queue lock here. only drivers with
* funky private ->back_merge_fn() function could be
* problematic.
*/
spin_lock_irq(q->queue_lock);
if (!rq->bio)
blk_rq_bio_prep(q, rq, bio);
else if (!ll_back_merge_fn(q, rq, bio)) {
ret = -EINVAL;
spin_unlock_irq(q->queue_lock);
goto unmap_bio;
} else {
rq->biotail->bi_next = bio;
rq->biotail = bio;

rq->data_len += bio->bi_size;
}
spin_unlock_irq(q->queue_lock);

return bio->bi_size;

Expand Down

0 comments on commit 072bc44

Please sign in to comment.