Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19328
b: refs/heads/master
c: 12f03a4
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Corry authored and Linus Torvalds committed Feb 1, 2006
1 parent c004561 commit a78d1ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dab6a42915554f70220e5a2ff55c59c749582c7b
refs/heads/master: 12f03a49cf0ab5e8511911142d28699499a572c4
4 changes: 4 additions & 0 deletions trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,14 @@ static void __split_bio(struct mapped_device *md, struct bio *bio)
static int dm_request(request_queue_t *q, struct bio *bio)
{
int r;
int rw = bio_data_dir(bio);
struct mapped_device *md = q->queuedata;

down_read(&md->io_lock);

disk_stat_inc(dm_disk(md), ios[rw]);
disk_stat_add(dm_disk(md), sectors[rw], bio_sectors(bio));

/*
* If we're suspended we have to queue
* this io for later.
Expand Down

0 comments on commit a78d1ef

Please sign in to comment.