pnfs/flexfiles: count io stat in rpc_count_stats callback
authorPeng Tao <tao.peng@primarydata.com>
Mon, 7 Dec 2015 23:33:14 +0000 (18:33 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:39 +0000 (14:32 -0500)
commit141b9b59ed8ae2602b2c285149ec8d4f6b05c4d9
tree03925d8dc3e2205cf254bd445c37d0a6a0ce1bd1
parentc22eeb8697352bd696300aabaf08eaff99bdb635
pnfs/flexfiles: count io stat in rpc_count_stats callback

If client ever restarts IO due to some errors, we'll endup
mis-counting IO stats if we do the counting in .rpc_done
callback. Move it to .rpc_count_stats callback that is only
called when releasing RPC.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c