rbd: record aggregate image transfer count
authorAlex Elder <elder@inktank.com>
Wed, 10 Apr 2013 17:34:25 +0000 (12:34 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:18:38 +0000 (21:18 -0700)
commit55f27e09312310d4dea9bb7b80c696f407caf1be
treee5534d19fb6adc31e7597edf573024f655f5987b
parenta5a337d4382dfe0f9e9e072e7d3eaad8e05e4b0b
rbd: record aggregate image transfer count

Compute the total number of bytes transferred for an image
request--the sum across each of the request's object requests.
To avoid contention do it only when all object requests are
complete, in rbd_img_request_complete().

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c