From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955Ab1KRSXt (ORCPT ); Fri, 18 Nov 2011 13:23:49 -0500 Received: from mx2.netapp.com ([216.240.18.37]:63559 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194Ab1KRSXs convert rfc822-to-8bit (ORCPT ); Fri, 18 Nov 2011 13:23:48 -0500 X-IronPort-AV: E=Sophos;i="4.69,534,1315206000"; d="scan'208";a="600068899" Message-ID: <1321640624.2653.5.camel@lade.trondhjem.org> Subject: Re: [PATCH] Don't hang user processes if Kerberos ticket for nfs4 mount expires From: Trond Myklebust To: Jim Rees Cc: John Hughes , Jeff Layton , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 18 Nov 2011 20:23:44 +0200 In-Reply-To: <20111118175409.GA1347@umich.edu> References: <00c101cca615$c2e08db6$78be630a@hq.netapp.com> <20111118175409.GA1347@umich.edu> Organization: NetApp Inc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.2.1 (3.2.1-2.fc16) Mime-Version: 1.0 X-OriginalArrivalTime: 18 Nov 2011 18:23:46.0626 (UTC) FILETIME=[35F3AA20:01CCA61F] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2011-11-18 at 12:54 -0500, Jim Rees wrote: > Myklebust, Trond wrote: > > So what are they supposed to do without tickets? Crash? > > No, why would they want to do that? > > I feel like I've entered the Twilight Zone here, so please continue without > me while I dig up the relevant background info. The point is that if the server won't allow them to issue read or write system calls, then there are 2 options available to them: 1. hang until someone renews their ticket 2. get an error which means crash, since most (all?) applications aren't written according to the non-posix assumption that read and write can return EACCES/EKEYEXPIRED errors. Trond -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com