From b3443d2dc2dea4ee5f7613f03218ff2b98b59d71 Mon Sep 17 00:00:00 2001 From: bobijam Date: Tue, 12 Aug 2008 04:17:38 +0000 Subject: [PATCH] Branch b1_8_gate b=16573 o=adilger i=johann, nathan Description: Export bytes_read/bytes_write count on OSC/OST. --- lustre/osc/osc_request.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 3c82e15..e8a4df5 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1470,13 +1470,13 @@ static int async_internal(int cmd, struct obd_export *exp, struct obdo *oa, if (cmd == OBD_BRW_READ) { lprocfs_oh_tally_log2(&cli->cl_read_page_hist, page_count); lprocfs_oh_tally(&cli->cl_read_rpc_hist, cli->cl_r_in_flight); - ptlrpc_lprocfs_brw(request, OST_READ, aa->aa_requested_nob); } else { lprocfs_oh_tally_log2(&cli->cl_write_page_hist, page_count); lprocfs_oh_tally(&cli->cl_write_rpc_hist, cli->cl_w_in_flight); - ptlrpc_lprocfs_brw(request, OST_WRITE, aa->aa_requested_nob); } + ptlrpc_lprocfs_brw(request, aa->aa_requested_nob); + LASSERT(list_empty(&aa->aa_oaps)); if (rc == 0) { @@ -2256,15 +2256,14 @@ static int osc_send_oap_rpc(struct client_obd *cli, struct lov_oinfo *loi, lprocfs_oh_tally(&cli->cl_read_rpc_hist, cli->cl_r_in_flight); lprocfs_oh_tally_log2(&cli->cl_read_offset_hist, (starting_offset >> CFS_PAGE_SHIFT) + 1); - ptlrpc_lprocfs_brw(req, OST_READ, aa->aa_requested_nob); } else { lprocfs_oh_tally_log2(&cli->cl_write_page_hist, page_count); lprocfs_oh_tally(&cli->cl_write_rpc_hist, cli->cl_w_in_flight); lprocfs_oh_tally_log2(&cli->cl_write_offset_hist, (starting_offset >> CFS_PAGE_SHIFT) + 1); - ptlrpc_lprocfs_brw(req, OST_WRITE, aa->aa_requested_nob); } + ptlrpc_lprocfs_brw(req, aa->aa_requested_nob); client_obd_list_lock(&cli->cl_loi_list_lock); -- 1.8.3.1