]> git.baikalelectronics.ru Git - kernel.git/commit
task IO accounting: correctly account threads IO statistics
authorAndrea Righi <righi.andrea@gmail.com>
Sat, 26 Jul 2008 22:22:27 +0000 (15:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 27 Jul 2008 03:16:47 +0000 (20:16 -0700)
commitb9f0f5e177829d93102b6da14631939869ba0716
treea87afab3739039531bdec50aa4f588cdd672bd02
parent8a26af22f27f247d1bb16ae294a0984e08ec9521
task IO accounting: correctly account threads IO statistics

Oleg Nesterov points out that we should check that the task is still alive
before we iterate over the threads.  This patch includes a fixup for this.

Also simplify do_io_accounting() implementation.

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c