From: "Nikita V. Youshchenko" <yoush@cs.msu.su>
To: linux-kernel@vger.kernel.org
Subject: Please assist in locating NFS race in old vendor kernel
Date: Wed, 9 May 2007 21:14:23 +0400 [thread overview]
Message-ID: <200705092114.29041@sercond.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]
Hello.
I'm currently working with an embedded system based on very old,
2.4.17-based, vendor kernel.
Among other issues, there is a race in NFS code, that I'm currently trying
to understand and fix.
The race is the following.
Some i/o is done on a file located on NFS-mounted filesystem. At some
moment, ftruncate() is called. And in very rare but still reproducable
cases:
- first inode->i_size is set to the new value, in process context
- then inode->i_size is restored to old value, in rpciod context.
I was able to catch this by adding some logging to the point where
__nfs_refresh_inode() updates inode->i_size.
Looks like inode size is being broken (by restore of old value) by
completeion handler of RPC operation that was started before ftruncate().
The test on which the race is reproduced more or less reliably,
is "fsx-linux" from LTP suite.
System in question is SMP - thus making race happen more often.
I guess the race is long fixed in more modern kernels.
But I'm not familiar with NFS code, and after some attempts to find
something I feel lost.
Could someone more familiar with NFS implementaion please point me where to
look?
Nikita
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-05-09 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 17:14 Nikita V. Youshchenko [this message]
2007-05-12 10:33 ` Jan Engelhardt
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=200705092114.29041@sercond.localdomain \
--to=yoush@cs.msu.su \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®