From: Jens Axboe Date: Tue, 23 May 2006 09:23:49 +0000 (+0200) Subject: [PATCH] blk: fix gendisk->in_flight accounting during barrier sequence X-Git-Tag: v2.6.17-rc5~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd0ff8aa1d95a896b3627bc62d42d6d002ac0bc3;p=pandora-kernel.git [PATCH] blk: fix gendisk->in_flight accounting during barrier sequence While executing barrrier sequence, the bar_rq which carries actual write was accounted as normal IO on completion, while it wasn't on queueing. This caused gendisk->in_flight to be decremented by 1 after each barrier thus messed up statistics. This patch makes bar_rq not accounted as normal IO. As the containing barrier request as a whole is accounted, part of it shouldn't be. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed