linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org,
	akpm@linux-foundation.org, trond.myklebust@fys.uio.no,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 2/3] enhanced syscall ESTALE error handling (v2)
Date: Fri, 01 Feb 2008 16:51:45 -0500	[thread overview]
Message-ID: <47A39471.4010105@redhat.com> (raw)
In-Reply-To: <E1JL3a0-0006H7-U3@pomaz-ex.szeredi.hu>

Miklos Szeredi wrote:
> This doesn't apply to -mm, because the ro-mounts stuff touches a lot
> of the same places as this patch.  You probably need to rebase this on
> top of those changes.
>
>   
>> This patch adds handling for the error, ESTALE, to the system
>> calls which take pathnames as arguments.  The algorithm used
>> is to detect that an ESTALE error has occurred during an
>> operation subsequent to the lookup process and then to unwind
>> appropriately and then to perform the lookup process again.
>> Eventually, either the lookup process will return an error
>> or a valid dentry/inode combination and then operation can
>> succeed or fail based on its own merits.
>>     
>
> If a broken NFS server or FUSE filesysem keeps returning ESTALE, this
> goes into an infinite loop.  How are we planning to deal with that?
>
>   

Would you describe the situation that would cause the kernel to
go into an infinite loop, please?

Please note that, at least for NFS, this looping is interruptible
by the user, so the system can't hang without anything that can
be done.

> And it has to be dealt with either in the VFS, or in the kernel parts
> of the relevant filesystems.  We can't just say, fix the broken
> servers, especially not with FUSE, where the server is totally
> untrusted.

Nope, certainly can't depend upon fixing servers.  The client
should not depend upon the server to avoid things like looping.

    Thanx...

       ps

  reply	other threads:[~2008-02-01 21:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 15:36 [PATCH 2/3] enhanced ESTALE error handling Peter Staubach
2008-02-01 20:57 ` [PATCH 2/3] enhanced syscall ESTALE error handling (v2) Peter Staubach
2008-02-01 21:37   ` Miklos Szeredi
2008-02-01 21:51     ` Peter Staubach [this message]
     [not found]       ` <47A39471.4010105-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-02-01 22:03         ` Miklos Szeredi
     [not found]           ` <E1JL3yn-0006KQ-AS-8f8m9JG5TPIdUIPVzhDTVZP2KDSNp7ea@public.gmane.org>
2008-02-01 22:30             ` Peter Staubach
     [not found]               ` <47A39D8F.9010003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-02-02  8:00                 ` Miklos Szeredi
     [not found]                   ` <E1JLDIq-000747-1y-8f8m9JG5TPIdUIPVzhDTVZP2KDSNp7ea@public.gmane.org>
2008-02-04 15:55                     ` Peter Staubach
2008-02-04 17:38                       ` Miklos Szeredi
2008-02-04 18:43                         ` Peter Staubach
     [not found]                           ` <47A75CCF.4090904-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-02-04 19:02                             ` Miklos Szeredi
     [not found]   ` <47A387D4.70605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-03-10 20:23     ` [PATCH 2/3] enhanced syscall ESTALE error handling (v3) Peter Staubach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47A39471.4010105@redhat.com \
    --to=staubach@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).