Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Martijn de Gouw <martijn.de.gouw-BHYAuTpL47qEVqv0pETR8A@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	<linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH RFC] cifs: revalidate directories instiantiated via FIND_* in order to handle DFS referrals
Date: Tue, 23 Apr 2013 11:59:45 +0200	[thread overview]
Message-ID: <51765B91.5090100@prodrive.nl> (raw)
In-Reply-To: <1358276491-4835-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Hi Jeff,

On 01/15/2013 08:01 PM, Jeff Layton wrote:
> We've had a long-standing problem with DFS referral points. CIFS servers
> generally try to make them look like directories in FIND_FIRST/NEXT
> responses. When you go to try to do a FIND_FIRST on them though, the
> server will then (correctly) return STATUS_PATH_NOT_COVERED. Mostly this
> manifests as spurious EREMOTE errors back to userland.
>
> This patch attempts to fix this by marking directories that are
> discovered via FIND_FIRST/NEXT for revaldiation. When the lookup code
> runs across them again, we'll reissue a QPathInfo against them and that
> will make it chase the referral properly.
>
> There is some performance penalty involved here and no I haven't
> measured it -- it'll be highly dependent upon the workload and contents
> of the mounted share. To try and mitigate that though, the code only
> marks the inode for revalidation when it's possible to run across a DFS
> referral. i.e.: when the kernel has DFS support built in and the share
> is "in DFS".

Are you planning to get this patch into mainline?

I've applied this patch to 3.7.7, otherwise we where not able to mount 
dfs shares. It's running for over 2 months now on our servers and we 
have not seen any problems whatsoever.

Regards, Martijn

-- 
Martijn de Gouw
Engineer
Prodrive B.V.
Mobile: +31 63 17 76 161
Phone:  +31 40 26 76 200

  parent reply	other threads:[~2013-04-23  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 19:01 [PATCH RFC] cifs: revalidate directories instiantiated via FIND_* in order to handle DFS referrals Jeff Layton
     [not found] ` <1358276491-4835-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-15 19:34   ` Steve French
     [not found]     ` <CAH2r5muYbaZewY3WjLXWF54R7DSPDswU9x1U87xj=2qFXnt5dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-15 19:47       ` Jeff Layton
2013-02-07 17:42   ` Sachin Prabhu
2013-04-23  9:59   ` Martijn de Gouw [this message]
     [not found]     ` <51765B91.5090100-BHYAuTpL47qEVqv0pETR8A@public.gmane.org>
2013-04-23 11:00       ` Jeff Layton

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=51765B91.5090100@prodrive.nl \
    --to=martijn.de.gouw-bhyautpl47qevqv0petr8a@public.gmane.org \
    --cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /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