Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:9029 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539Ab2BQSrL (ORCPT ); Fri, 17 Feb 2012 13:47:11 -0500 Received: from svlrsexc1-prd.hq.netapp.com (svlrsexc1-prd.hq.netapp.com [10.57.115.30]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1HIlAv6018544 for ; Fri, 17 Feb 2012 10:47:10 -0800 (PST) From: "Myklebust, Trond" To: "Adamson, Dros" CC: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH] NFS: include filelayout DS rpc stats in mountstats Date: Fri, 17 Feb 2012 18:47:04 +0000 Message-ID: <1329504423.12048.3.camel@lade.trondhjem.org> References: <1329502524-27114-1-git-send-email-dros@netapp.com> In-Reply-To: <1329502524-27114-1-git-send-email-dros@netapp.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gRnJpLCAyMDEyLTAyLTE3IGF0IDEzOjE1IC0wNTAwLCBXZXN0b24gQW5kcm9zIEFkYW1zb24g d3JvdGU6DQo+IEluY2x1ZGUgUlBDIHN0YXRpc3RpY3MgZnJvbSBhbGwgZGF0YSBzZXJ2ZXJzIGlu IC9wcm9jL3NlbGYvbW91bnRzdGF0cyBmb3IgcE5GUw0KPiBmaWxlbGF5b3V0IG1vdW50cy4NCj4g DQo+IFNpZ25lZC1vZmYtYnk6IFdlc3RvbiBBbmRyb3MgQWRhbXNvbiA8ZHJvc0BuZXRhcHAuY29t Pg0KPiAtLS0NCj4gVXBkYXRlOiBkb24ndCBpbmNyZW1lbnQgdGtfY2xpZW50IHN0YXRzIGlmIGNh bGxiYWNrIGlzIHVzZWQuDQo+IA0KPiBUaGlzIHN0aWxsIGNoZWNrcyB0YXNrLT50a19jbGllbnQg IT0gTlVMTCAtLSBJJ20gbm90IGNvbnZpbmN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