From: Xuan Baldauf <xuan--lkml@baldauf.org>
To: Urban Widmark <urban@teststation.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org,
Xuan Baldauf <xuan--lkml@baldauf.org>,
"James H. Puttick" <james.puttick@kvs.com>
Subject: Re: [PATCH][RFT] smbfs bugfixes for 2.4.4
Date: Mon, 21 May 2001 13:00:29 +0200 [thread overview]
Message-ID: <3B08F54D.F1C75D14@baldauf.org> (raw)
In-Reply-To: <Pine.LNX.4.30.0105082131350.4308-100000@cola.teststation.com>
Urban Widmark wrote:
> On 7 May 2001, Linus Torvalds wrote:
>
> > It has code to do that in smb_revalidate_inode(), but it may be that
> > something else refreshes the inode size _without_ doing the proper
> > invalidation checks. Or maybe Urban broke that logic by mistake while
> > fixing the other one ;)
>
> No, I broke it when copying the ncpfs dircache code.
>
> That code will reuse an old inode if it already exists (and thus also any
> pages attached to it), which is what I wanted and should be fine except
> that it needs to invalidate_inode_pages() if something changed.
>
> Xuan and James, you have both seen this bug with smbfs not properly
> handling changes made on the server. Could you please test this patch vs
> 2.4.4 and let me know if it helps or not.
>
> http://www.hojdpunkten.ac.se/054/samba/smbfs-2.4.4-truncate+retry-4.patch
> (Apply with 'patch -p1' in the linux/ source dir)
>
> /Urban
Hello Urban,
I've been playing around a while with that patch and so far could not find any
problems anymore. But I've noticed some other annoying behaviour, which might
be caused by trying to work around the initially reported bug where the
win98se server does not update something (the new file contents after writing
to a file or the file size?) when something is written by the client: Every
little SMBwrite is followed by an SMBflush, which is translated by win98se
into a "commit" of the file, which seems to be an fsync(2) equivalent.
That is annoying, because it heavily slows down bulk transfers of small
writes, like automatically unzipping a new mozilla build from the linux box to
the windows box. Every write of say 100 bytes is implemented as
send write req
recv write ack
send flush req
sync to disk (on the windows machine)
recv flush ack
This creates heaviest disk load (on the windows machine) for minimal
throughput. Is the SMBflush needed anymore, after you seem to have found
another, better workaround?
Xuân.
next prev parent reply other threads:[~2001-05-21 11:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-02 21:59 [PATCH][RFT] smbfs bugfixes for 2.4.4 Urban Widmark
2001-05-06 0:14 ` Xuan Baldauf
2001-05-06 10:16 ` Urban Widmark
2001-05-07 17:44 ` Linus Torvalds
2001-05-08 20:43 ` Urban Widmark
2001-05-08 22:02 ` James H. Puttick
2001-05-21 11:00 ` Xuan Baldauf [this message]
2001-05-21 18:03 ` Urban Widmark
2001-05-22 22:25 ` Urban Widmark
2001-05-22 22:57 ` Xuan Baldauf
2001-05-22 23:12 ` Urban Widmark
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=3B08F54D.F1C75D14@baldauf.org \
--to=xuan--lkml@baldauf.org \
--cc=james.puttick@kvs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=urban@teststation.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