Whamcloud - gitweb
LU-333: Make read_bytes in llite/*/stats report bytes read.
authorJohn Hammond <jhammond@tacc.utexas.edu>
Thu, 14 Jul 2011 00:48:40 +0000 (19:48 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Aug 2011 17:01:48 +0000 (13:01 -0400)
commit37eeb0ffd0325c5a3c426d6ab0e72ef6da84db99
tree7c444cf40861af95424e3adde681853841f7aaa2
parent6aea71f39238f370c02a2f293a01555cc653bd01
LU-333: Make read_bytes in llite/*/stats report bytes read.

Move ll_stats_ops_tally(..., LPROC_LL_{READ,WRITE}_BYTES, ...) from
vvp_io_init() to the end of ll_file_io_generic(), and tally by the
actual number of bytes read rather than the number requested.

Test 127b, client stats are correctly tallied with this patch.

Change-Id: Icad0bc09630b8c1775f2ec59326902aa88215498
Signed-off-by: John Hammond <jhammond@tacc.utexas.edu>
Signed-off-by: Richard Henwood <rhenwood@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1094
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/vvp_io.c
lustre/tests/sanity.sh