Return-Path: linux-nfs-owner@vger.kernel.org Received: from mexforward.lss.emc.com ([128.222.32.20]:17647 "EHLO mexforward.lss.emc.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418Ab1JSCD3 (ORCPT ); Tue, 18 Oct 2011 22:03:29 -0400 From: To: , , CC: Date: Tue, 18 Oct 2011 22:02:39 -0400 Subject: RE: nfs4: serialize layoutcommit Message-ID: References: <20111018170123.GB2876@umich.edu> <1318959178.3213.10.camel@lade.trondhjem.org> In-Reply-To: <1318959178.3213.10.camel@lade.trondhjem.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: U29ycnkgbXkgbGFzdCBtYWlsIHdhcyByZWplY3RlZCBhcyBpdCBjb250YWlucyBIVE1MLi4uIFJl c2VudCBoZXJlLg0KDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGlu dXgtbmZzLW93bmVyQHZnZXIua2VybmVsLm9yZyBbbWFpbHRvOmxpbnV4LW5mcy1vd25lckB2Z2Vy Lmtlcm5lbC5vcmddDQo+IE9uIEJlaGFsZiBPZiBUcm9uZCBNeWtsZWJ1c3QNCj4gU2VudDogV2Vk bmVzZGF5LCBPY3RvYmVyIDE5LCAyMDExIDE6MzMgQU0NCj4gVG86IEppbSBSZWVzOyBQZW5nIFRh bw0KPiBDYzogbGludXgtbmZzQHZnZXIua2VybmVsLm9yZw0KPiBTdWJqZWN0OiBSZTogbmZzNDog c2VyaWFsaXplIGxheW91dGNvbW1pdA0KPiANCj4gT24gVHVlLCAyMDExLTEwLTE4IGF0IDEzOjAx IC0wNDAwLCBKaW0gUmVlcyB3cm90ZToNCj4gPiBJIGJlbGlldmUgdGhpcyBvbmUgaXMgc3RpbGwg bmVlZGVkLCBhbmQgaXMgbWlzc2luZyBmcm9tIHlvdXIgdHJlZS4gIEkgY2FuJ3QNCj4gPiByZW1l bWJlciB0aGUgc3RhdHV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