Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:31329 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932385Ab2CSRbk (ORCPT ); Mon, 19 Mar 2012 13:31:40 -0400 From: "Myklebust, Trond" To: "Adamson, Andy" CC: Andy Adamson , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH Version 1 08/11] SUNRPC: add rpc_drain_queue to empty an rpc_waitq Date: Mon, 19 Mar 2012 17:31:37 +0000 Message-ID: <1332178298.2636.11.camel@lade.trondhjem.org> References: <1331836850-5195-1-git-send-email-andros@netapp.com> <1331836850-5195-9-git-send-email-andros@netapp.com> <1331856643.24392.3.camel@lade.trondhjem.org> <1331911317.2518.14.camel@lade.trondhjem.org> <8587FE07-0E16-4E0B-BCBE-7B295B89062C@netapp.com> <69F651CF-0BAF-491F-B557-BC0607356E4F@netapp.com> <1BF4551A-75CC-4E5F-A39B-A8DE645653F3@netapp.com> In-Reply-To: <1BF4551A-75CC-4E5F-A39B-A8DE645653F3@netapp.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gTW9uLCAyMDEyLTAzLTE5IGF0IDE2OjQ5ICswMDAwLCBBZGFtc29uLCBBbmR5IHdyb3RlOg0K PiBPbiBNYXIgMTksIDIwMTIsIGF0IDEyOjQ0IFBNLCBBbmR5IEFkYW1zb24gd3JvdGU6DQo+IA0K PiA+IA0KPiA+IFRoZSByZWFzb24gcnBjX3dha2VfdXAoKSBkb2VzIG5vdCB3YWtlIHVwIGFsbCB0 aGUgdGFza3MsIGlzIHRoYXQgaXQgdXNlcyBsaXN0X2Zvcl9lYWNoX2VudHJ5X3NhZmUgd2hpY2gg YXNzaWducyB0aGUgIm5leHQiIHRhc2stPnUudGtfd2FpdC5saXN0cyBwb2ludGVyIGluIGl0J3Mg Zm9yIGxvb3Agd2l0aG91dCB0YWtpbmcgaW50byBjb25z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