Whamcloud - gitweb
LU-618 llite: IO accounting of page read 36/1636/11
authorHongchao Zhang <hongchao.zhang@intel.com>
Thu, 30 Nov 2017 10:10:52 +0000 (18:10 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:19:06 +0000 (06:19 +0000)
commit48de9b195d71cb57ee50636d75c59d78ee068cee
tree9271a43b5aa7b9f41a71d8e54a8cd7f5fa6b6c71
parentf95ee72ab6ecffdaf6dd4f0202d954dfc45d0ba1
LU-618 llite: IO accounting of page read

When CONFIG_TASK_IO_ACCOUNTING is used with Lustre, writes are
accounted for but not read.

The accounting is normally done in the kernel for page writeback
and readahead functionlity, Therefore, as Lustre implements its
own readahead, it must also maintain its own accounting on read
(but not for write)

Change-Id: I19f330be65324a8da002f9d61cb9262345ecb012
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/1636
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/llite/rw.c
lustre/tests/sanity.sh