* [Patch 4/8] Enhanced partition statistics: cciss fix
@ 2007-12-13 16:17 Jerome Marchand
2007-12-13 16:55 ` Miller, Mike (OS Dev)
0 siblings, 1 reply; 3+ messages in thread
From: Jerome Marchand @ 2007-12-13 16:17 UTC (permalink / raw)
To: linux-kernel; +Cc: axboe, mike.miller
Updates the enhanced partition statistics in cciss driver.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
---
cciss.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -urNp -X linux-2.6/Documentation/dontdiff linux-2.6.orig/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c
--- linux-2.6.orig/drivers/block/cciss.c 2007-12-04 17:37:13.000000000 +0100
+++ linux-2.6/drivers/block/cciss.c 2007-12-05 13:46:29.000000000 +0100
@@ -1268,7 +1268,8 @@ static void cciss_softirq_done(struct re
if (blk_fs_request(rq)) {
const int rw = rq_data_dir(rq);
- disk_stat_add(rq->rq_disk, sectors[rw], rq->nr_sectors);
+ all_stat_add(rq->rq_disk, sectors[rw],
+ rq->nr_sectors, rq->sector);
}
#ifdef CCISS_DEBUG
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [Patch 4/8] Enhanced partition statistics: cciss fix 2007-12-13 16:17 [Patch 4/8] Enhanced partition statistics: cciss fix Jerome Marchand @ 2007-12-13 16:55 ` Miller, Mike (OS Dev) 2007-12-13 18:57 ` Kiyoshi Ueda 0 siblings, 1 reply; 3+ messages in thread From: Miller, Mike (OS Dev) @ 2007-12-13 16:55 UTC (permalink / raw) To: Jerome Marchand, linux-kernel@vger.kernel.org Cc: axboe@kernel.dk, Kiyoshi Ueda > > Updates the enhanced partition statistics in cciss driver. > > Signed-off-by: Jerome Marchand <jmarchan@redhat.com> > --- > cciss.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) diff -urNp -X > linux-2.6/Documentation/dontdiff > linux-2.6.orig/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c > --- linux-2.6.orig/drivers/block/cciss.c 2007-12-04 > 17:37:13.000000000 +0100 > +++ linux-2.6/drivers/block/cciss.c 2007-12-05 > 13:46:29.000000000 +0100 > @@ -1268,7 +1268,8 @@ static void cciss_softirq_done(struct re > if (blk_fs_request(rq)) { > const int rw = rq_data_dir(rq); > > - disk_stat_add(rq->rq_disk, sectors[rw], > rq->nr_sectors); > + all_stat_add(rq->rq_disk, sectors[rw], > + rq->nr_sectors, rq->sector); > } How does this mesh with the changes submitted by Kiyoshi Ueda? Any conflicts? -- mikem ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch 4/8] Enhanced partition statistics: cciss fix 2007-12-13 16:55 ` Miller, Mike (OS Dev) @ 2007-12-13 18:57 ` Kiyoshi Ueda 0 siblings, 0 replies; 3+ messages in thread From: Kiyoshi Ueda @ 2007-12-13 18:57 UTC (permalink / raw) To: Mike.Miller, jmarchan, axboe; +Cc: linux-kernel, j-nomura, k-ueda Hi, Thank you for noticing this, Mike. On Thu, 13 Dec 2007 16:55:06 +0000, "Miller, Mike" wrote: > > Updates the enhanced partition statistics in cciss driver. > > > > Signed-off-by: Jerome Marchand <jmarchan@redhat.com> > > --- > > cciss.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) diff -urNp -X > > linux-2.6/Documentation/dontdiff > > linux-2.6.orig/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c > > --- linux-2.6.orig/drivers/block/cciss.c 2007-12-04 > > 17:37:13.000000000 +0100 > > +++ linux-2.6/drivers/block/cciss.c 2007-12-05 > > 13:46:29.000000000 +0100 > > @@ -1268,7 +1268,8 @@ static void cciss_softirq_done(struct re > > if (blk_fs_request(rq)) { > > const int rw = rq_data_dir(rq); > > > > - disk_stat_add(rq->rq_disk, sectors[rw], > > rq->nr_sectors); > > + all_stat_add(rq->rq_disk, sectors[rw], > > + rq->nr_sectors, rq->sector); > > } > > How does this mesh with the changes submitted by Kiyoshi Ueda? Any conflicts? I think no conflict with my patch technically. Jerome's patch changes __end_that_request_first(), too, as same as the change above. And my patch changes cciss/cpqarray to use blk_end_request, which uses __end_that_request_first() internally, instead of doing disk_stat_add() by themselves. (http://marc.info/?l=linux-kernel&m=119741542206258&w=2) So Jerome can just drop the cciss/cpqarray changes from his patch-set, if my patch-set is merged. > -- mikem Thanks, Kiyoshi Ueda ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-13 19:31 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-12-13 16:17 [Patch 4/8] Enhanced partition statistics: cciss fix Jerome Marchand 2007-12-13 16:55 ` Miller, Mike (OS Dev) 2007-12-13 18:57 ` Kiyoshi Ueda
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox