Whamcloud - gitweb
LU-618 llite: IO accounting of page read 70/30570/3
authorHongchao Zhang <hongchao.zhang@intel.com>
Thu, 30 Nov 2017 10:10:52 +0000 (18:10 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 8 Jan 2018 16:31:52 +0000 (16:31 +0000)
commit19f21a32e74fd347f03c90b33b3d75ee537bf0e7
tree28454d65a0d03171a5725a68cb0206b5aa24bcdb
parenta132b8f07169d715a4bcc769fb378e97792484fa
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)

Lustre-change: https://review.whamcloud.com/1636
Lustre-commit: 48de9b195d71cb57ee50636d75c59d78ee068cee

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