Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162254AbWKPCsk (ORCPT ); Wed, 15 Nov 2006 21:48:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1162261AbWKPCsj (ORCPT ); Wed, 15 Nov 2006 21:48:39 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:20872 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S1162259AbWKPCsG (ORCPT ); Wed, 15 Nov 2006 21:48:06 -0500 Message-Id: <20061116024902.947757000@sous-sol.org> References: <20061116024332.124753000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Wed, 15 Nov 2006 18:44:00 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, maks@sternwelten.at, Jens Axboe Subject: [patch 28/30] cciss: fix iostat Content-Disposition: inline; filename=cciss-fix-iostat.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 37 -stable review patch. If anyone has any objections, please let us know. ------------------ From: Jens Axboe cciss needs to call disk_stat_add() for iostat to work. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright --- drivers/block/cciss.c | 6 ++++++ 1 file changed, 6 insertions(+) --- linux-2.6.18.2.orig/drivers/block/cciss.c +++ linux-2.6.18.2/drivers/block/cciss.c @@ -1302,6 +1302,12 @@ static void cciss_softirq_done(struct re complete_buffers(rq->bio, rq->errors); + if (blk_fs_request(rq)) { + const int rw = rq_data_dir(rq); + + disk_stat_add(rq->rq_disk, sectors[rw], rq->nr_sectors); + } + #ifdef CCISS_DEBUG printk("Done with %p\n", rq); #endif /* CCISS_DEBUG */ -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/