Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([63.128.21.194]:26470 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbcIPV7J (ORCPT ); Fri, 16 Sep 2016 17:59:09 -0400 From: Trond Myklebust To: Jeff Layton CC: Schumaker Anna , List Linux NFS Mailing , Fields Bruce James Subject: Re: [PATCH v3 2/9] nfs: check for POSIX lock capability on server even for flock locks Date: Fri, 16 Sep 2016 21:59:01 +0000 Message-ID: <18E0EDFB-5127-46AA-A078-CD084872A99B@primarydata.com> References: <1474057631-31209-1-git-send-email-jlayton@redhat.com> <1474057631-31209-3-git-send-email-jlayton@redhat.com> <1474062362.13386.13.camel@redhat.com> In-Reply-To: <1474062362.13386.13.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: DQo+IE9uIFNlcCAxNiwgMjAxNiwgYXQgMTc6NDYsIEplZmYgTGF5dG9uIDxqbGF5dG9uQHJlZGhh dC5jb20+IHdyb3RlOg0KPiANCj4gT24gRnJpLCAyMDE2LTA5LTE2IGF0IDIxOjE0ICswMDAwLCBU cm9uZCBNeWtsZWJ1c3Qgd3JvdGU6DQo+Pj4gDQo+Pj4+PiBPbiBTZXAgMTYsIDIwMTYsIGF0IDE2 OjI3LCBKZWZmIExheXRvbiA8amxheXRvbkByZWRoYXQuY29tPiB3cm90ZToNCj4+PiANCj4+PiBX ZSBtYXkgZW5kIHVwIGluIGhlcmUgd2l0aCBhIEZMX0ZMT0NLIGxvY2sgcmVxdWVzdC4gV2UgdHJh bnNsYXRlIHRob3NlDQo+Pj4gdG8gd2hvbGUtZmlsZSBORlN2NCBsb2NrcyBhbmQgc2VuZCB0aGVt IG9uIHRvIHRoZSBzZXJ2ZXIsIHNvIHdlIG5lZWQgdG8NCj4+PiB2ZXJpZnkgdGhhdCB0aGUgc2Vy dmVyIHN1cHBvcnRzIHRoZW0gbm8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