* [Patch] blkiomon: fix min value
@ 2008-11-24 13:48 Martin Peschke
0 siblings, 0 replies; 2+ messages in thread
From: Martin Peschke @ 2008-11-24 13:48 UTC (permalink / raw)
To: linux-btrace
From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Reported-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
A couple of min-counters weren't initialised correctly (thrput_r, thrput_w).
We have got a perfectly working init function for this purpose.
Removing partially duplicated code.
Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
---
blkiomon.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/blkiomon.c
+++ b/blkiomon.c
@@ -168,7 +168,7 @@ static struct dstat *blkiomon_alloc_dsta
return NULL;
}
- memset(dstat, 0, sizeof(*dstat));
+ blkiomon_stat_init(&dstat->msg.stat);
return dstat;
}
@@ -211,10 +211,6 @@ static struct dstat *blkiomon_get_dstat(
goto out;
dstat->msg.stat.device = device;
- dstat->msg.stat.size_r.min = -1ULL;
- dstat->msg.stat.size_w.min = -1ULL;
- dstat->msg.stat.d2c_r.min = -1ULL;
- dstat->msg.stat.d2c_w.min = -1ULL;
rb_link_node(&dstat->node, search.parent, search.node_ptr);
rb_insert_color(&dstat->node, &dstat_tree[dstat_curr]);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Patch] blkiomon: fix min value
@ 2009-01-21 13:58 Martin Peschke
0 siblings, 0 replies; 2+ messages in thread
From: Martin Peschke @ 2009-01-21 13:58 UTC (permalink / raw)
To: linux-btrace
Hi Jens,
here is one of two fixes, which have not made it into blktrace yet.
I posted them end of last year
http://marc.info/?l=linux-btrace&m\x122753449808364&w=2
Please apply. Thanks,
Martin
From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Reported-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
A couple of min-counters weren't initialised correctly (thrput_r,
thrput_w).
We have got a perfectly working init function for this purpose.
Removing partially duplicated code.
Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
---
blkiomon.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/blkiomon.c
+++ b/blkiomon.c
@@ -168,7 +168,7 @@ static struct dstat *blkiomon_alloc_dsta
return NULL;
}
- memset(dstat, 0, sizeof(*dstat));
+ blkiomon_stat_init(&dstat->msg.stat);
return dstat;
}
@@ -211,10 +211,6 @@ static struct dstat *blkiomon_get_dstat(
goto out;
dstat->msg.stat.device = device;
- dstat->msg.stat.size_r.min = -1ULL;
- dstat->msg.stat.size_w.min = -1ULL;
- dstat->msg.stat.d2c_r.min = -1ULL;
- dstat->msg.stat.d2c_w.min = -1ULL;
rb_link_node(&dstat->node, search.parent, search.node_ptr);
rb_insert_color(&dstat->node, &dstat_tree[dstat_curr]);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-21 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 13:58 [Patch] blkiomon: fix min value Martin Peschke
-- strict thread matches above, loose matches on Subject: below --
2008-11-24 13:48 Martin Peschke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).