Return-Path: linux-nfs-owner@vger.kernel.org Received: from fieldses.org ([174.143.236.118]:44807 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756450Ab3EGVoY (ORCPT ); Tue, 7 May 2013 17:44:24 -0400 Date: Tue, 7 May 2013 17:44:21 -0400 From: "J. Bruce Fields" To: "Myklebust, Trond" Cc: Chuck Lever , Jeff Layton , "linux-nfs@vger.kernel.org" Subject: Re: long delay when mounting due to SETCLIENTID AUTH_GSS attempts Message-ID: <20130507214421.GJ32743@fieldses.org> References: <20130503142421.19fb3ca6@tlielax.poochiereds.net> <1367606034.3556.25.camel@leira.trondhjem.org> <20130503144437.3a47e476@tlielax.poochiereds.net> <20130503211810.GF5715@fieldses.org> <8F91C5FB-EE7F-48F8-9ED5-6B5D8503E248@oracle.com> <7F5CD894-42E9-4C65-A1BC-0885C63E560B@oracle.com> <20130507210200.GF32743@fieldses.org> <1367962608.3580.10.camel@leira.trondhjem.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1367962608.3580.10.camel@leira.trondhjem.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Tue, May 07, 2013 at 09:36:49PM +0000, Myklebust, Trond wrote: > On Tue, 2013-05-07 at 17:02 -0400, J. Bruce Fields wrote: > > I suppose if gssd is running then it should always hold open the parent > > (rpc_pipefs/nfs) directory. So if that isn't open it might be safe to > > assume we can fail immediately. > > If rpc.idmapd is running, then it will do the same. Whoops, you're right. > One possible solution might simply be to put up a 'gssd' pipe in > rpc_pipefs/nfs and use that as a metric. The problem is that IIRC, > rpc.gssd will release all pipes and then reopen them on getting a new > directory notification... Yeah, longer term it'd be nice to have some better way to recognize when gssd is up than that wait_for_pipe_open hack, but I don't see anything that works with current gssd. --b.