From: Dan Carpenter <dan.carpenter@oracle.com>
To: Steve French <smfrench@gmail.com>
Cc: Steve French <sfrench@samba.org>,
samba-technical@lists.samba.org, linux-cifs@vger.kernel.org
Subject: Re: [patch] cifs: accidentally creating empty files
Date: Fri, 28 Oct 2011 10:20:19 +0300 [thread overview]
Message-ID: <20111028072019.GA14900@longonot.mountain> (raw)
In-Reply-To: <CAH2r5mtOF=Ja7_mTK576uEqgZqaVH+8YXtOqmZVknBC81sD=8Q@mail.gmail.com>
On Wed, Oct 19, 2011 at 09:14:37PM -0500, Steve French wrote:
> Doesn't this force the create to happen later - rather than
> at lookup time where it belongs?
>
> if the issue is just noperm ... we should let this through if the user
> has local permissions. Doubling the cost of a file create to Samba
> seems like a bad idea (ie doing aQueryPathInfo AND an NTCreateX
> doubles the roundrip, doubles the load on the server etc.) - the whole
> point of this is to let us do an "atomic" open or create operation
> and not have to split it into multiple requests. In any case why would
> we do the open and then follow it with a create?
>
> Can we fix this to (at least) narrow the performance penalty.
>
Yes, it does add another back and forth to file create... It's hard/
impossible to check the permissions first and then decide whether to
pass the O_CREAT flag. Maybe we could add an if statement to check
whether noperm was used and the noperm version could use the create
on lookup. It's obviously not pretty but it might be worth it for
speedup.
regards,
dan carpenter
next prev parent reply other threads:[~2011-10-28 7:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 21:28 [patch] cifs: accidentally creating empty files Dan Carpenter
2011-10-13 14:00 ` Dan Carpenter
2011-10-13 15:45 ` Steve French
2011-10-13 17:27 ` Jeff Layton
[not found] ` <20111013132755.6c5db87e-xSBYVWDuneFaJnirhKH9O4GKTjYczspe@public.gmane.org>
2011-10-13 18:09 ` Steve French
2011-10-20 2:14 ` Steve French
2011-10-28 7:20 ` Dan Carpenter [this message]
[not found] ` <20111028072019.GA14900-dZEljifmRObu9KfB+GxooP8+0UxHXcjY@public.gmane.org>
2011-10-28 15:27 ` Steve French
[not found] ` <CAH2r5msb_+tenSg1kWCn_0xi2EZu6vboqvmbQ17vRBYoqHp2Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-29 3:44 ` Jeff Layton
[not found] ` <20111028234406.01fd23ba-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-10-29 5:07 ` Steve French
[not found] ` <CAH2r5mvHF0X6PQ8FyBfVEpQeyWgd7RGkawJykapkKt0K84QTHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-29 5:48 ` Jeff Layton
2011-10-29 22:03 ` Steve French
[not found] ` <CAH2r5muq4n34Liy_=CQQX-PeTinJFDAPi81fA-eqsTcXw5remQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-30 2:48 ` Jeff Layton
[not found] ` <20111029224852.15ee6302-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-10-30 2:53 ` Steve French
[not found] ` <CAH2r5msVoEuxo8vGj6sYjjNqjPeo9wxa-r7bAq6Or1_xS9EWFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-30 5:36 ` 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=20111028072019.GA14900@longonot.mountain \
--to=dan.carpenter@oracle.com \
--cc=linux-cifs@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.org \
--cc=smfrench@gmail.com \
/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