e6120ecd85
Copy from Base:System/drbd based on submit request 22102 from user coolo OBS-URL: https://build.opensuse.org/request/show/22102 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/drbd?expand=0&rev=21
28 lines
803 B
Diff
28 lines
803 B
Diff
--- drbd/drbd_req.c 2009-10-07 21:29:57.964277921 +0200
|
|
+++ drbd/drbd_req.c 2009-10-07 21:55:32.817152584 +0200
|
|
@@ -61,7 +61,7 @@
|
|
part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]);
|
|
part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio));
|
|
part_stat_unlock();
|
|
- mdev->vdisk->part0.in_flight++;
|
|
+ mdev->vdisk->part0.in_flight[rw]++;
|
|
#endif
|
|
}
|
|
|
|
@@ -77,13 +77,13 @@
|
|
#ifdef __disk_stat_add
|
|
__disk_stat_add(mdev->vdisk, ticks[rw], duration);
|
|
disk_round_stats(mdev->vdisk);
|
|
- mdev->vdisk->in_flight--;
|
|
+ mdev->vdisk->in_flight[rw]--;
|
|
#else
|
|
cpu = part_stat_lock();
|
|
part_stat_add(cpu, &mdev->vdisk->part0, ticks[rw], duration);
|
|
part_round_stats(cpu, &mdev->vdisk->part0);
|
|
part_stat_unlock();
|
|
- mdev->vdisk->part0.in_flight--;
|
|
+ mdev->vdisk->part0.in_flight[rw]--;
|
|
#endif
|
|
}
|
|
|